简体   繁体   English

无法 Xcode 导出 Adhoch 存档

[英]Cannot Xcode Export Adhoch Archive

If I run an Xcode build, then export that archive from within Xcode, it works.如果我运行 Xcode 构建,然后从 Xcode 中导出该存档,它就可以工作。

If I take the same export options used by that export, and then manually run the following:如果我采用该导出使用的相同导出选项,然后手动运行以下命令:

xcodebuild -verbose -exportArchive -archivePath build/MyApp.xcarchive -exportPath build -exportOptionsPlist ExportOptions.plist | xcpretty

Then it fails with the following error:然后失败并出现以下错误:

AppThinning.StubError(errorDescription: Optional("ipatool failed"))

I can't see a clear error reason in the detailed logs.我在详细日志中看不到明确的错误原因。 There are some warnings, but its not clear if they are the root cause, since it keeps going up until the end, where the above message appears.有一些警告,但不清楚它们是否是根本原因,因为它一直上升到最后,出现上述消息的地方。

How can I troubleshoot this?我该如何解决这个问题?

The export options are:导出选项是:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>compileBitcode</key>
    <true/>
    <key>destination</key>
    <string>export</string>
    <key>method</key>
    <string>ad-hoc</string>
    <key>provisioningProfiles</key>
    <dict>
        <key>com.foo.myapp</key>
        <string>[redacted]</string>
        <key>com.foo.myapp.OneSignalNotificationServiceExtension</key>
        <string>[redacted]</string>
    </dict>
    <key>signingCertificate</key>
    <string>Apple Distribution</string>
    <key>signingStyle</key>
    <string>manual</string>
    <key>stripSwiftSymbols</key>
    <true/>
    <key>teamID</key>
    <string>[redacted]</string>
    <key>thinning</key>
    <string>&lt;none&gt;</string>
</dict>
</plist>

Edit: Note that the setting for thinning really is correct, as per documentation, and what Xcode (via GUI) uses itself, successfully.编辑:请注意,根据文档,细化设置确实是正确的,并且 Xcode(通过 GUI)成功地使用了它自己。 (Yeah, Xcode, right?) (是的,Xcode,对吧?)

I found the issue, buried in the logs.我发现了问题,埋在日志中。

So the answer to the question above is:所以上面问题的答案是:

  • Carefully review each of the log output files.仔细查看每个日志 output 文件。

The problem: I was running a Ruby under RVM and some dependencies were fighting.问题:我在 RVM 下运行 Ruby 并且一些依赖项正在发生冲突。 Dropping back to the raw Apple Ruby worked.回到原始 Apple Ruby 有效。 (Presumably, installing the correct dependencies also could have). (据推测,安装正确的依赖项也可能有)。

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

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