简体   繁体   English

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

[英]xcodebuild ios export archive fail on success build

I am trying to build a complicated xcworkspace that contains 8 xcodeproj.我正在尝试构建一个包含 8 个 xcodeproj 的复杂 xcworkspace。

  • Main project (target app, framework, app extension)主项目(目标应用、框架、应用扩展)
  • Pods豆荚
  • 6 cpp projects with one static library target each (these have dependencies with each other and added to the final project) 6 个 cpp 项目,每个项目都有一个静态库目标(这些项目相互依赖并添加到最终项目中)

I can build the project via xcodebuild command.我可以通过 xcodebuild 命令构建项目。 I am also able to Archive it, but I cannot export the IPA file, it always gets the following error:我也可以存档它,但我无法导出 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}

I also tried to use the XCode 10.3 (10G8) UI in order to perform the same actions.我还尝试使用 XCode 10.3 (10G8) UI 来执行相同的操作。 This results to the Organizer screen where I see the xcarchive erroneous located in a group "Other Items" and not "iOS Apps" as it should.这导致我在管理器屏幕上看到 xcarchive 错误位于组“其他项目”而不是“iOS 应用程序”中。 Additionally, the option此外,该选项

  • "Validate Content" is disabled. “验证内容”已禁用。
  • "Distribute Content" does not provide anything for iOS packing. “分发内容”不为 iOS 打包提供任何内容。

I have verified that my build commands are correct as the project was able to build with these in its previous state.我已经验证我的构建命令是正确的,因为项目能够在以前的状态下使用这些命令进行构建。 I've tried changing static project libraries dependencies but when adding all dependencies to all items it ends with a build error of multiple symbols.我尝试更改静态项目库依赖项,但是当将所有依赖项添加到所有项目时,它以多个符号的构建错误结束。

I suspect that something in the build settings, or library/header references is faulty, but I cannot really troubleshoot it.我怀疑构建设置或库/标头引用中的某些内容有问题,但我无法真正解决它。

Is there any way to get additional information for the problem?有没有办法获得有关该问题的其他信息?

I had the same issue.我遇到过同样的问题。 I had to reset my developer certificate on our build server to resolve this.我不得不在我们的构建服务器上重置我的开发人员证书来解决这个问题。

I hope this helps others.我希望这对其他人有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM