- 問(wèn)題: === BUILD TARGET SchoolBasedDev OF PROJECT SchoolBased WITH THE DEFAULT CONFIGURATION (Debug) ===
Check dependencies
Code Signing Error: Provisioning profile "devSchoolBaseDebug" doesn't include signing certificate "Apple Distribution: National Center For Open & Distance Education xxxx".
- 解決: 選中
PROGECT使用Release編譯
image.png
- 問(wèn)題: error: exportArchive: "xxxApp.app" requires a provisioning profile with the Push Notifications feature.
Error Domain=IDEProvisioningErrorDomain Code=9 ""xxxApp.app" requires a provisioning profile with the Push Notifications feature." UserInfo={NSLocalizedDescription="xxxaApp.app" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
這是導(dǎo)出Archive出現(xiàn)了問(wèn)題, 查看配置的ExportOptions.plist文件是否正確
- 解決: 我這里配置的
provisioningProfiles出錯(cuò)了,bundle id沒(méi)有對(duì)應(yīng)自己的pp描述文件
<key>provisioningProfiles</key>
<dict>
// 這個(gè)是bundle id
<key>com.aolan.dev.face</key>
// 這個(gè)是pp描述文件
<string>xxxDev</string>
</dict>
- 問(wèn)題: DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in."
賬號(hào)登錄過(guò)期了, 需要重新登錄;
- 解決:
Xcode ——>Preference——> Accounts 重新登錄
- 問(wèn)題: error: exportArchive: No "iOS Ad Hoc" profiles for team 'SAxxxxx32' matching 'devSchoolBasedRelease' are installed.
Error Domain=IDEProfileLocatorErrorDomain Code=4 "No "iOS Ad Hoc" profiles for team ''SAxxxxx32' matching 'devSchoolBasedRelease' are installed." UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription=No "iOS Ad Hoc" profiles for team ''SAxxxxx32' matching 'devSchoolBasedRelease' 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.}
導(dǎo)出的ExportOptions.plist配置錯(cuò)誤了, 要仔細(xì)檢查下
- 解決:
由于打包c(diǎn)onfiguration是release, 需要使用正式的發(fā)布證書,iPhone Distribution改成Apple Distribution
<key>signingCertificate</key>
<string>Apple Distribution</string>
- 問(wèn)題:
Please provide your Apple Developer Program account credentials?
?The login information you enter will be stored in your macOS Keychain?
?You can also pass the password using the FASTLANE_PASSWORD environment variable?
- 解決: 設(shè)置
FASTLANE_PASSWORD在環(huán)境變量中。
export FASTLNAE_PASSWORD="xxxx"
參考: 這里的問(wèn)題6
