在能夠上傳構建之前,我正在使用Azure pipeline部署應用程式,test flight但現在我收到以下錯誤。
我是新手react native iOS,對此問題的任何幫助都會有所幫助。
語言環境機器配置
- xcode 版本 版本 13.2.1 (13C100)
- Mac Book 版本 11.6.6 (20G624)
我已經嘗試了一些azure-pipelines.yml檔案更改但沒有奏效,不知道需要在哪里進行更改。
天藍色管道.yml
trigger:
- main
pool:
vmImage: 'macOS-10.15'
variables:
- group: App Variables
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.19.0'
displayName: 'Install Node.js'
- script: yarn install
displayName: Install Dependencies
- task: Xcode@5
inputs:
actions: 'build'
configuration: 'Release'
sdk: 'iphoneos14.5'
xcWorkspacePath: 'ios/Safety.xcworkspace'
scheme: 'Safety'
packageApp: true
archivePath: 'output/archive'
exportPath: 'output/package'
exportOptions: plist
exportOptionsPlist: 'ios/ExportOptions.plist'
報告錯誤
Error uploading ipa file:
ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 14.4 SDK. All
iOS apps submitted to the App Store must be built with the iOS 15 SDK or later,
included in Xcode 13 or later."
[Transporter Error Output]: The call to the iTMSTransporter completed with a non-zero
exit status: 1. This indicates a failure.
##[error]Error: The process '/usr/local/lib/ruby/gems/2.7.0/bin/fastlane' failed with exit code 1
##[section]Finishing: Publish to the App Store TestFlight track
當我將 sdk 版本更改為 15.2 時出現以下錯誤
Task : Xcode
Description : Build, test, or archive an Xcode workspace on
macOS. Optionally package an app.
Version : 5.200.0
Author : Microsoft Corporation
Help :
/usr/bin/xcodebuild -version
Xcode 12.4
Build version 12D4e
/usr/bin/xcodebuild -sdk iphoneos15.2 -configuration Release -
workspace /Users/runner/work/1/s/ios/Proxus.xcworkspace -scheme
Proxus build CODE_SIGNING_ALLOWED=NO |
/usr/local/lib/ruby/gems/2.7.0/bin/xcpretty -r junit --no-color
xcodebuild: error: SDK "iphoneos15.2" cannot be located.
##[error]Error: /usr/bin/xcodebuild failed with return code: 64
Finishing: Xcode
uj5u.com熱心網友回復:
您的管道檔案指定macOS-10.15. 該影像具有Xcode 12。
您需要 Xcode 13 才能使用 iOS 15 SDK 進行構建。指定macOS-latest或macOS-11。此影像包含 Xcode 13。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/490185.html
