小编Ash*_*hah的帖子

xcodebuild 命令无法生成 iPA

在 xcode 9.2 中,我使用自动签名生成存档,使用-allowProvisioningUpdates密钥通过 xcodebuild 命令生成开发人员证书和配置文件。

但是当通过 xcodebuild 命令生成 iPA 时,该存档会低于错误。

Details:  Unable to close provisioning ledger entry because not all of its subentries are closed
Object:   <IDEProvisioningLedgerEntry: 0x7f925ced3840>
Method:   -closeWithError:
Thread:   <NSThread: 0x7f925a734df0>{number = 4, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
Run Code Online (Sandbox Code Playgroud)

使用 Xcodebuild 命令生成存档

xcodebuild -exportArchive -archivePath '/path/to/archive/Test.xcarchive' -exportOptionsPlist '/path/to/exportOptions/ExportOptions.plist' -exportPath '/path/to/archive/' PRODUCT_BUNDLE_IDENTIFIER="bundle_id" DEVELOPMENT_TEAM="development_team_id" -allowProvisioningUpdates
Run Code Online (Sandbox Code Playgroud)

并导出 plist 选项详细信息:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist …
Run Code Online (Sandbox Code Playgroud)

xcodebuild cocoapods swift

6
推荐指数
1
解决办法
1541
查看次数

标签 统计

cocoapods ×1

swift ×1

xcodebuild ×1