Jenkins-打包出現(xiàn)問(wèn)題

  1. 問(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
  1. 問(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>
  1. 問(wèn)題: DVTPortal: Error:
    Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in."

賬號(hào)登錄過(guò)期了, 需要重新登錄;

  • 解決: Xcode ——>Preference——> Accounts 重新登錄
  1. 問(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>
  1. 問(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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容