2011-11-01 58 views
7

我正在嘗試構建我的應用並將其提交給App Store,但Xcode在嘗試執行此操作時一直給我提供錯誤。Xcode 4.2:構建歸檔很好,但歸檔失敗,出現錯誤

當我在模擬器中構建和運行時,它工作,當我構建並運行它的設備時,當我嘗試使用構建存檔選項時,它起作用,當我實際嘗試存檔它時,根據(恕我直言)這是什麼時間,9或11個錯誤。

任何人有任何想法爲什麼?我嘗試了以下some other tips,比如刪除〜/ Library/Developer/Xcode/DerivedData中的項目文件夾。

另一個用戶說要清理構建文件夾,但該選項在菜單欄中顯示爲灰色。 任何人都知道任何其他解決方案?

我所有的錯誤都是文件中未發現的錯誤,我使用Three20這樣的錯誤是:

'Three20Core/TTCorePreprocessorMacros.h' file not found 
'Three20Core/TTDebug.h' file not found 
'Three20Core/TTCorePreprocessorMacros.h' file not found 
'Three20Core/TTGlobalCore.h' file not found 

../scripts/Protect.command: line 23: cd: /Users/[username]/Library/Developer/Xcode/DerivedData/TTCatalog-gcnbfpwscygfrmdhcfiahsatpdba/ArchiveIntermediates/pr/BuildProductsPath/Release-iphoneos/../three20/Three20Network: No such file or directory 

'Three20UICommon/private/UIViewControllerGarbageCollection.h' file not found 
'Three20Core/TTGlobalCoreLocale.h' file not found 
'Three20UICommon/private/UIViewControllerGarbageCollection.h' file not found 

../scripts/Protect.command: line 23: cd: /Users/[username]/Library/Developer/Xcode/DerivedData/TTCatalog-gcnbfpwscygfrmdhcfiahsatpdba/ArchiveIntermediates/pr/BuildProductsPath/Release-iphoneos/../three20/Three20UICommon: No such file or directory 
+0

清潔項目變灰了嗎? –

+0

@XenElement不,乾淨的生成文件夾是,http://cl.ly/3V0l1v440C2E3Z0I132E –

+0

也看到這個問題!也使用three20。刪除我的整個derivededData但仍然不會編譯! –

回答

0

的錯誤似乎是在環境變量的路徑問題。

只要認真遵循在整合Three20庫@https://github.com/facebook/three20 提到的步驟(使用第二個選項將其添加到手動項目)

確保添加到所有配置(調試,發佈,分發配置(如果存在)。

另外,還要確保您的Xcode的偏好是如下 xcode->首選項>位置

  1. 選擇導出數據 - >相對
  2. 選擇高級 - >遺留
+0

我做了這個變化,並得到以下錯誤:'Three20/Three20.h'文件未找到 – applefreak

+0

其中是頭文件Three20.h生成後複製? – Hanuman

相關問題