I am using Xcode to build .ipa export files for submission to Apple. I have been doing so successfully before the upgrade from Xcode 10 to Xcode 11.
Some of the errors we were experiencing suggested that we needed to completely uninstall Xcode because we had a beta version on previously and the old version of Xcode beta was probably causing the issues. I decided to just wipe the entire Mac clean with a system reset to avoid any copy of Xcode Beta or its settings from being on the machine. So it is now a completely fresh install of Mac OS. I have reinstalled Xcode.
I've imported my old certificates into the Keychain and verifed I only have valid certificates listed.
I run two commands. I first create an archive. Then I use the archive to export the ipa:
xcodebuild -allowProvisioningUpdates -workspace my_app.xcworkspace -scheme XXXX -archivePath build-dev/XXXX.xcarchive archive
xcodebuild -exportArchive -archivePath build-dev/XXXX.xcarchive -exportOptionsPlist release.plist -exportPath build-dev
Run Code Online (Sandbox Code Playgroud)
请注意,我已将方案替换为XXXX,并且示例中的捆绑包ID已替换为“ my.bundle.id”。
此过程可以完成开发.ipa。但是,当我创建Testflight或Production .ipa时出现错误。
第一个命令运行没有错误,并且我在“ build-dev / XXX.archive”中创建了存档文件。第二条命令生成错误:
2019-09-30 12:11:46.444 xcodebuild[10674:326155] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/10/8g5xrhr56wz6sgttzh0_s8fr0000gn/T/XXXX_2019-09-30_12-11-46.444.xcdistributionlogs'.
2019-09-30 12:11:56.534 xcodebuild[10674:326208] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-14936/IDEFoundation/Provisioning/Logging/IDEProvisioningLedger.m:172
Details: Unable to close provisioning ledger entry because not all of its subentries are closed
Object: <IDEProvisioningLedgerEntry: 0x7ff7568b7a00>
Method: -closeWithError:
Thread: <NSThread: 0x7ff750b16af0>{number = 14, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
error: exportArchive: Create certificate
Error Domain=IDEProvisioningErrorDomain Code=19 "Create certificate" UserInfo={IDEDistributionIssueSeverity=3, IDEProvisioningError_UserInfoKey_IDEProvisioningUserAction=<IDEProvisioningCreateTeamOwnedCertificateUserAction: 0x7ff756acf0c0>, NSLocalizedRecoverySuggestion=Create a new Apple Distribution certificate for your team., NSLocalizedDescription=Create certificate}
error: exportArchive: No profiles for 'my.bundle.id' were found
Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'my.bundle.id' were found" UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription=No profiles for 'my.bundle.id' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'my.bundle.id'.}
Run Code Online (Sandbox Code Playgroud)
这是我的release.plist文件。
<?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>method</key>
<string>app-store</string>
<key>teamID</key>
<string>MY-TEAM-ID</string>
<key>compileBitcode</key>
<false/>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)
我能够从Xcode内部成功构建。我发布的只是命令行导出。
捆绑包ID存在于我的developer.apple.com帐户上。我在Xcode偏好设置中具有有效的iOS开发和iOS发行证书。
我不确定为什么会出现这些错误。
Aus*_*tin 11
嘿,我也有这个问题。为了解决这个问题,我要做的是创建存档文件,并使用GUI从xCode导出TestFlight的IPA文件。在此过程中,xCode能够创建丢失的证书。现在,我可以成功运行命令行xCode命令了。
使用GUI创建所需证书的步骤:
下面是需要在GUI流程中单击的“生成Apple分发证书”窗口的屏幕快照。
| 归档时间: |
|
| 查看次数: |
933 次 |
| 最近记录: |