1

我想在我的 XCode 项目中创建额外的构建配置和方案,以便为 TestFlight 构建特定的档案。一个连接到我们的 DEV 环境供内部测试人员使用,一个连接到我们的 PROD 环境供外部 beta 测试人员使用。

因此,我关注了这篇出色的博客文章,并通过复制发布版本创建了 2 个额外的构建配置。然后,我通过将存档构建操作的构建配置更改为正确的构建配置,在默认方案的基础上创建了 2 个附加方案。最后,我在每个构建配置中设置了一些用户定义的设置,以根据我们是在 DEV 构建还是 PROD 构建中指向正确的服务器 URL。

但是现在当我使用这两个附加方案之一存档我的项目时,我收到以下 Lipo 错误:

/致命错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:无法打开输入文件:/Users/sarbogast/Library/Developer/Xcode/DerivedData/Build/Intermediates /ArchiveIntermediates/MyAppTestFlightPROD/IntermediateBuildFilesPath/MyApp.build/TestFlight PROD-iphoneos/MyApp.build/Objects-normal/armv7/MyApp(没有这样的文件或目录)

实际上,当我转到/Users/sarbogast/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/MyAppTestFlightPROD/IntermediateBuildFilesPath/MyApp.build/TestFlight PROD-iphoneos/MyApp.build/Objects-normal/armv7目录时,那里没有 MyApp 文件或目录。

我在这里和那里读到,将“仅构建活动架构”设置为“是”可能会解决问题,但我不想这样做,因为这些是 TestFlight 的发布版本,我希望它们适用于所有架构。

知道我的设置可能有什么问题吗?

4

1 回答 1

0

I am using CocoaPods and I had log messages saying that the linker could not find Pods for my new scheme. So I added my new scheme to link_with in my podfile and now it works perfectly. I still don't understand why, because I thought link_with was only to list targets and this is not a target, this is a scheme. But it works.

于 2014-04-18T07:06:17.533 回答