Xcode 4.2:构建存档很好,但存档失败并出现错误

7
我正在尝试构建我的应用程序并将其提交到App Store,但是Xcode在尝试执行此操作时一直给我报错。 当我在模拟器中构建和运行时它可以正常工作,当我为设备构建和运行时它也可以正常工作,当我尝试使用构建档案选项时它也可以正常工作,但当我实际尝试归档时,它会因9或11个错误而失败,这取决于(在我看来)一天的时间。 有人知道为什么吗?我尝试了按照其他提示所说的一些提示,例如删除~/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

@XenElement 不是的,clean build folder 是指清空构建文件夹,http://cl.ly/3V0l1v440C2E3Z0I132E - Christian Turkoanje
看到这个问题了!我也在使用Three20。已经删除了整个DerivedData文件夹,但还是无法编译! - Michael Gray
我有同样的问题。你解决了吗? - Paresh Masani
1个回答

0

错误似乎是环境变量中的路径问题。

请仔细按照集成Three20库所提到的步骤进行操作 @ https://github.com/facebook/three20(使用第二个选项手动将其添加到您的项目中)

确保配置已添加到所有配置(Debug,Release,Distribution(如果存在))中。

还要确保您的Xcode首选项如下: xcode->preferences->locations

  1. 选择Derived Data->relative
  2. 选择Advanced -> Legacy

我进行了以下更改并出现了以下错误:未找到“Three20/Three20.h”文件。 - Paresh Masani
构建完成后,头文件Three20.h被复制到哪里? - Hanuman

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接