我正在使用脚本来构建和存档iOS应用。从xcode 9开始,一切正常。 现在我收到以下错误:
2017-10-20 12:56:12.322 xcodebuild[25449:77625] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fc927c861b0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=9 \"\"CC.app\" requires a provisioning profile with the Push Notifications and App Groups features.\" UserInfo={NSLocalizedDescription=\"CC.app\" requires a provisioning profile with the Push Notifications and App Groups features., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}",
我使用以下exportOptions.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>ad-hoc</string>
<key>teamID</key>
<string>xxxxxxx</string>
<key>uploadBitcode</key>
<false/>
<key>uploadSymbols</key>
<false/>
</dict>
</plist>
我不想指定配置文件,如果我使用xcode而不是命令行存档,则自动功能正常工作。
有什么建议吗? 感谢
答案 0 :(得分:0)
这是因为您在exportOptions.plist中缺少“provisioningProfiles”选项,因此您可能会尝试使用新文件,而不是使用此文件,这是在手动归档和导出IPA后创建的。
答案 1 :(得分:0)
在exportOptions.plist中添加自动signingStyle:
<key>signingStyle</key>
<string>automatic</string>