Я разрабатываю приложение для iOS с Flutter в macOS. Когда я запускаю команду flutter run, я получаю следующее предупреждения:
Код: Выделить всё
Command PhaseScriptExecution failed with a nonzero exit code
/Users/cyberonline/source/cyber-online/CyberOnline/ios/Pods/Pods.xcodeproj:
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
11.0, but the range of supported deployment target versions is 12.0 to 18.2.99. (in
target 'flutter_local_notifications-flutter_local_notifications_privacy' from
project 'Pods')
/Users/cyberonline/source/cyber-online/CyberOnline/ios/Pods/Pods.xcodeproj:
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
9.0, but the range of supported deployment target versions is 12.0 to 18.2.99. (in
target 'PromisesObjC' from project 'Pods')
/Users/cyberonline/source/cyber-online/CyberOnline/ios/Pods/Pods.xcodeproj:
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
9.0, but the range of supported deployment target versions is 12.0 to 18.2.99. (in
target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods')
note: Run script build phase 'Run Script' will be run during every build because
the option to run the script phase "Based on dependency analysis" is unchecked. (in
target 'Runner' from project 'Runner')
note: Run script build phase 'Thin Binary' will be run during every build because
the option to run the script phase "Based on dependency analysis" is unchecked. (in
target 'Runner' from project 'Runner')
Код: Выделить всё
9.0
Уже существует:
Я установил целевую платформу iOS в своем подфайле следующим образом:
Код: Выделить всё
platform :ios, ‘13.0’
Код: Выделить всё
MinimumOSVersion
13.0
Что я пытался сделать:
- Я набрал в терминале следующее:
Код: Выделить всё
flutter clean
flutter pub get
rm -rf ios/Pods
rm -rf ios/Podfile.lock
cd ios
pod install
cd ..
flutter run
- Я ввел ios/Pods/Pods .xcodeproj/project.pbxproj.
Код: Выделить всё
IPHONEOS_DEPLOYMENT_TARGET = 9.0
IPHONEOS_DEPLOYMENT_TARGET = 11.0
IPHONEOS_DEPLOYMENT_TARGET = 12.0
Код: Выделить всё
IPHONEOS_DEPLOYMENT_TARGET = 13.0
Код: Выделить всё
flutter clean
flutter pub get
flutter run
Как устранить эту несовместимость? Есть ли у вас какие-либо предложения, которые могут помочь?
Среда:
- Flutter 3.24. 5
- DartSDK 3.5.4
- MacOS Sequoia 15.2
- Xcode 16.2
- VS-код 1.96.2
- Симулятор 16.0 (iPhone 16 Pro, iOS 18.2)
Подробнее здесь: https://stackoverflow.com/questions/793 ... t-incompat