flutter_thingsboard_app
flutter_thingsboard_app copied to clipboard
Error with Xcode 16.0
Build system version info:
% fvm flutter --version
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (4 months ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
Xcode: Version 16.0 (16A242d)
Running flutter run
results in an error:
error: type 'UIApplication' does not conform to protocol 'Launcher'
Possibly relating to component url_launcher
as discussed in https://github.com/flutter/flutter/issues/151467
Full output:
% fvm flutter run
"ar": 36 untranslated message(s).
"zh": 55 untranslated message(s).
"zh_CN": 55 untranslated message(s).
"zh_TW": 54 untranslated message(s).
To see a detailed report, use the untranslated-messages-file
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection>
This will generate a JSON format file containing all messages that
need to be translated.
Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 6.2s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:CE6D797D-B94C-4C11-A963-CD812BA8A32B, OS:17.5, name:iPhone 15 Pro Max }
{ platform:iOS Simulator, id:CE6D797D-B94C-4C11-A963-CD812BA8A32B, OS:17.5, name:iPhone 15 Pro Max }
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/kt/twk4pmfn6wl7mk69n4081hx00000gn/T/flutter_tools.Y8kuSJ/flutter_ios_build_temp_dir5wTZll/temporary_xcresult_bundle
/Users/sprijk/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.1/ios/Classes/Launcher.swift:20:1: error: type 'UIApplication' does not conform to protocol 'Launcher'
extension UIApplication: Launcher {}
^
UIKit.UIApplication:24:15: note: candidate has non-matching type '(URL, [UIApplication.OpenExternalURLOptionsKey : Any], (@MainActor @Sendable (Bool) -> Void)?) -> Void'
open func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey : Any] = [:], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)? = nil)
^
/Users/sprijk/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.1/ios/Classes/Launcher.swift:20:1: note: add stubs for conformance
extension UIApplication: Launcher {}
^
/Users/sprijk/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.1/ios/Classes/Launcher.swift:20:1: error: type 'UIApplication' does not conform to protocol 'Launcher'
extension UIApplication: Launcher {}
^
UIKit.UIApplication:24:15: note: candidate has non-matching type '(URL, [UIApplication.OpenExternalURLOptionsKey : Any], (@MainActor @Sendable (Bool) -> Void)?) -> Void'
open func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey : Any] = [:], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)? = nil)
^
/Users/sprijk/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.1/ios/Classes/Launcher.swift:20:1: note: add stubs for conformance
extension UIApplication: Launcher {}
^
Command SwiftEmitModule failed with a nonzero exit code
Command SwiftEmitModule failed with a nonzero exit code
Command SwiftEmitModule failed with a nonzero exit code
/Users/sprijk/Code/flutter_thingsboard_app_orig/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.0.99. (in target 'OrderedSet' from project 'Pods')
/Users/sprijk/Code/flutter_thingsboard_app_orig/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.0.99. (in target 'MTBBarcodeScanner' 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')
/Users/sprijk/Code/flutter_thingsboard_app_orig/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.0.99. (in target 'PromisesObjC' from project 'Pods')
/Users/sprijk/Code/flutter_thingsboard_app_orig/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.0.99. (in target 'flutter_local_notifications-flutter_local_notifications_privacy' from project 'Pods')
/Users/sprijk/Code/flutter_thingsboard_app_orig/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.0.99. (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.