【问题标题】:Xcode 4.2: Build for Archive is good, but Archive fails with errorsXcode 4.2:为存档构建很好,但存档失败并出现错误
【发布时间】:2011-12-19 20:32:03
【问题描述】:

我正在尝试构建我的应用并将其提交到 App Store,但 Xcode 在尝试执行此操作时不断给我错误。

当我在模拟器中构建并运行它时它可以工作,当我为设备构建和运行它时它可以工作,当我尝试使用 build for archive 选项它工作时,当我实际尝试归档它时它会失败并显示 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

【问题讨论】:

  • @XenElement 不,干净的构建文件夹是,cl.ly/3V0l1v440C2E3Z0I132E
  • 也看到了这个问题!也使用three20。删除了我的整个derivedData,但仍然无法编译!
  • 我也有同样的问题。你解决了吗?

标签: iphone ios xcode archive


【解决方案1】:

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

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

确保将配置添加到所有配置(调试、发布、分发(如果存在)。

还要确保您的 Xcode 偏好如下 xcode->首选项->位置

  1. 选择派生数据->相对
  2. 选择高级 -> 旧版

【讨论】:

  • 我进行了此更改并收到以下错误:'Three20/Three20.h' 文件未找到
  • 生成后复制的头文件 Three20.h 在哪里?
猜你喜欢
  • 2017-11-02
  • 1970-01-01
  • 1970-01-01
  • 2019-02-24
  • 2014-11-19
  • 1970-01-01
  • 2011-12-03
  • 1970-01-01
  • 2013-12-20
相关资源
最近更新 更多