Xcodeを使用して、Appleに送信する.ipaエクスポートファイルをビルドしています。Xcode 10からXcode 11にアップグレードする前に、私はこれを成功させてきました。
以前にベータ版があり、古いバージョンのXcodeベータが問題を引き起こしていた可能性があるため、発生していたエラーのいくつかは、Xcodeを完全にアンインストールする必要があることを示唆しています。Xcode Betaのコピーやその設定がマシンに存在しないように、システムリセットでMac全体をきれいに拭くだけにすることにしました。これで、Mac OSの完全に新しいインストールになります。Xcodeを再インストールしました。
古い証明書をキーチェーンにインポートし、有効な証明書のみがリストされていることを確認しました。
2つのコマンドを実行します。最初にアーカイブを作成します。次に、アーカイブを使用して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
スキームをXXXXに置き換え、私の例のバンドルIDを「my.bundle.id」に置き換えたことに注意してください。
このプロセスは、開発.ipaを実行するために機能します。しかし、TestflightまたはProduction .ipaを作成しようとすると、エラーが発生します。
最初のコマンドはエラーなしで実行され、「build-dev / XXX.archive」にアーカイブファイルが作成されています。2番目のコマンドはエラーを生成します。
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'.}
これは私の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>
Xcode内から正常にビルドできます。これは、私が発行したコマンドラインエクスポートだけです。
バンドルIDはdeveloper.apple.comアカウントに存在します。Xcodeの設定に有効なiOS開発およびiOS配布証明書があります。
これらのエラーが発生する理由は不明です。
