Xcodebuild:使用-exportarchive创建.ipa总是找不到配置文件?

时间:2019-02-06 06:50:09

标签: ios xcode build xcodebuild

尝试通过运行以下命令的存档来创建ipa:

xcodebuild -exportArchive -archivePath $PWD/archive/test.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/build

尽管我已经安装了配置文件,但始终会引发以下错误:

error: exportArchive: No "iOS Ad Hoc" profiles for team 'XXXXXXXXXX' matching 'adhoc_profile' are installed.

Error Domain=IDEProfileLocatorErrorDomain Code=4 "No "iOS Ad Hoc" profiles for team 'XXXXXXXXXX' matching 'adhoc_profile' are installed." UserInfo={NSLocalizedDescription=No "iOS Ad Hoc" profiles for team 'XXXXXXXXXX' matching 'adhoc_profile' are installed., NSLocalizedRecoverySuggestion=Install a profile (by dragging and dropping it onto Xcode's dock item) or specify a different profile 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>compileBitcode</key>   <true/>      
<key>method</key>   
<string>ad-hoc</string>      
<key>provisioningProfiles</key>     
<dict>       
<key>com.app.appname</key>      
<string>adhoc_profile</string>  </dict>      
<key>signingStyle</key>     
<string>manual</string>      
<key>stripSwiftSymbols</key>    
<true/>     
<key>teamID</key>    
<string>XXXXXXXXXX</string>     
<key>thinning</key>      
<string>&lt;none&gt;</string> 
</dict> 
</plist>

0 个答案:

没有答案