我正在尝试构建我的应用程序并将其提交到app,但是Xcode在尝试这样做时总是给我带来错误。
当我在模拟器中构建和运行它时,当我构建并运行一个设备时,它会工作;当我尝试使用build for归档选项时,它会工作;当我实际尝试将它存档时,它会失败,这取决于(IMHO)它是什么时候。
有人知道为什么吗?我尝试遵循some other tips,例如删除~/Library/Developer/Xcode/派生数据中的项目文件夹
另一个用户说要清除build文件夹,但是这个选项在菜单栏中是灰色的。有人知道其他的解决办法吗?
我所有的错误都是文件找不到的错误,我使用的是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发布于 2012-03-12 10:21:52
错误似乎是环境变量中的路径问题。
只需仔细遵循集成Three20库@ https://github.com/facebook/three20中提到的步骤(使用第二个选项手动将其添加到项目中)
确保将配置添加到所有配置(调试、发布、分发(如果存在)。
还请确保Xcode首选项如下所示->preferences->位置
选择派生的Data->relative
https://stackoverflow.com/questions/7973003
复制相似问题