я столкнулся со следующей проблемой:
при запуске моего флаттер-приложения на Simulator 18.3.1 возникает ошибка: Ошибка выполнения команды PhaseScriptExecution с ненулевым кодом выхода с Xcode 26.
Я использую Xcode 26
, и флаттер-версия проекта немного устарела: 3.3.2
журналы vscode:
Код: Выделить всё
Apple@MacBook-Air cirilla % cd /Users/Apple/projects/tohb/cirilla && rm -rf ios/Pods
ios/Podfile.lock && fvm flutter run 2>&1 | tail -50
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: 'keyWindow' has been explicitly marked deprecated here
2 warnings generated.
/Users/Apple/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.9.0/ios/Classes/messages.g.m:191:62: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
191 | NSObject *MultiFactorUserHostApiGetCodec() {
| ^
| void
/Users/Apple/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.9.0/ios/Classes/messages.g.m:352:65: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
352 | NSObject *MultiFactoResolverHostApiGetCodec() {
| ^
| void
/Users/Apple/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.9.0/ios/Classes/messages.g.m:429:58: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
429 | NSObject *GenerateInterfacesGetCodec() {
| ^
| void
3 warnings generated.
/Users/Apple/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.9.0/ios/Classes/FLTFirebaseAuthPlugin.m:101:72: warning: sending 'FLTFirebaseAuthPlugin *__strong' to parameter of incompatible type 'id _Nonnull'
101 | [[FLTFirebasePluginRegistry sharedInstance] registerFirebasePlugin:self];
| ^~~~
In module 'firebase_core' imported from /Users/Apple/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.9.0/ios/Classes/FLTFirebaseAuthPlugin.m:7:
/Users/Apple/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.22.0/ios/Classes/FLTFirebasePluginRegistry.h:23:64: note: passing argument to parameter 'firebasePlugin' here
23 | - (void)registerFirebasePlugin:(id _Nonnull)firebasePlugin;
| ^
/Users/Apple/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.9.0/ios/Classes/FLTFirebaseAuthPlugin.m:1836:45: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
1836 | return [[UIApplication sharedApplication] keyWindow];
| ^
In module 'UIKit' imported from /Users/Apple/projects/tohb/cirilla/ios/Pods/Target Support Files/firebase_auth/firebase_auth-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: property 'keyWindow' is declared deprecated here
108 | @property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: 'keyWindow' has been explicitly marked deprecated here
2 warnings generated.
In file included from /Users/Apple/projects/tohb/cirilla/ios/ImageNotification/NotificationService.m:9:
/Users/Apple/projects/tohb/cirilla/build/ios/Debug-iphonesimulator/FirebaseMessaging/FirebaseMessaging.framework/Headers/FirebaseMessaging.h:17:9: warning: double-quoted include "FIRMessaging.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
17 | #import "FIRMessaging.h"
| ^~~~~~~~~~~~~~~~
|
/Users/Apple/projects/tohb/cirilla/build/ios/Debug-iphonesimulator/FirebaseMessaging/FirebaseMessaging.framework/Headers/FirebaseMessaging.h:18:9: warning: double-quoted include "FIRMessagingExtensionHelper.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
18 | #import "FIRMessagingExtensionHelper.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2 warnings generated.
Failed to package /Users/Apple/projects/tohb/cirilla.
Command PhaseScriptExecution failed with a nonzero exit code
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 16e.
Apple@MacBook-Air cirilla %
Подробнее здесь: https://stackoverflow.com/questions/798 ... h-xcode-26
Мобильная версия