gpt4 book ai didi

ios - xcodebuild ios 导出存档在成功构建时失败

转载 作者:行者123 更新时间:2023-12-05 07:11:36 24 4
gpt4 key购买 nike

我正在尝试构建一个包含 8 个 xcodeproj 的复杂 xcworkspace。

  • 主要项目(目标应用、框架、应用扩展)
  • pod
  • 6 个 cpp 项目,每个项目有一个静态库目标(它们相互依赖并添加到最终项目中)

我可以通过 xcodebuild 命令构建项目。我也可以存档它,但我无法导出 IPA 文件,它总是出现以下错误:

2020-03-18 19:04:49.801 xcodebuild[28749:691158] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/vr/1fb5zcxd0gg92359ynn0r2gm0000gn/T/xxxxx_2020-03-18_19-04-49.800.xcdistributionlogs'.
2020-03-18 19:04:49.834 xcodebuild[28749:691158] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
error: exportArchive: exportOptionsPlist error for key 'method': expected one of {}, but no value was provided

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'method': expected one of {}, but no value was provided" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but no value was provided}

我还尝试使用 XCode 10.3 (10G8) UI 来执行相同的操作。这导致我在管理器屏幕上看到 xcarchive 错误位于“其他项目”组中,而不是应有的“iOS 应用程序”。此外,选项

  • “验证内容”已禁用。
  • “分发内容”不提供任何 iOS 打包。

我已验证我的构建命令是正确的,因为该项目能够在其以前的状态下使用这些命令进行构建。我试过更改静态项目库依赖项,但是在将所有依赖项添加到所有项目时,它以多个符号的构建错误结束。

我怀疑build设置或库/ header 引用中的某些内容有问题,但我无法真正排除故障。

是否有任何方法可以获取有关该问题的额外信息?

最佳答案

我遇到了同样的问题。我不得不在我们的构建服务器上重置我的开发者证书来解决这个问题。

我希望这对其他人有帮助。

关于ios - xcodebuild ios 导出存档在成功构建时失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60745592/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com