最近透過 xcodebuild 來產生 ipa 檔時,以下的錯誤,
error: exportArchive: …app requires a provisioning profile.
Error Domain=IDEProvisioningErrorDomain Code=9 …requires a provisioning profile. …NSLocalizedRecoverySuggestion=Add a profile to the “provisioningProfiles” dictionary in your Export Options property list.}

原來是因為 xCode 9 的 export Options plist 檔中需要再指定 provisioningProfiles 相關資料,內容如下圖,
