2.8 C
New York
Sunday, January 19, 2025

ios – Unable To Run Flutter App With Apple Watch Extension After Upgrading 3.27.0


My app has an Apple Watch extension and dealing with none drawback earlier than upgrading Flutter 3.27
However after improve I can not run my app from VSCode. However I can run both the app it self or Apple Watch extension from XCode with none drawback.

When I attempt to run from VSCode I acquired the error under. However I can run flutter construct ios terminal command, it really works as regular.

Launching lib/fundamental.dart on iPhone 16 Professional in debug mode...
Xcode construct finished.                                           40.4s
Did not construct iOS app
Swift Compiler Error (Xcode): 'StateObject' is simply out there in iOS 14.0 or newer
/Customers/bahadirarslan/Improvement/Flutter/myproject/ios/MyProjectpercent20Watchpercent20App/MainView.swift:10:5

Swift Compiler Error (Xcode): 'fundamental()' is simply out there in iOS 14.0 or newer
/Customers/bahadirarslan/Improvement/Flutter/myproject/ios/MyProjectpercent20Watchpercent20App/MyProjectApp.swift:9:0

Swift Compiler Error (Xcode): 'Scene' is simply out there in iOS 14.0 or newer
/Customers/bahadirarslan/Improvement/Flutter/myproject/ios/MyProjectpercent20Watchpercent20App/MyProjectApp.swift:12:19

Swift Compiler Error (Xcode): Sort 'WatchViewModel' doesn't conform to protocol 'WCSessionDelegate'
/Customers/bahadirarslan/Improvement/Flutter/myproject/ios/MyProjectpercent20Watchpercent20App/ViewModel/WatchViewModel.swift:79:0

Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code

Couldn't construct the applying for the simulator.
Error launching software on iPhone 16 Professional.

Exited (1).
[✓] Flutter (Channel secure, 3.27.0, on macOS 15.1 24B83 darwin-arm64, locale en-TR)
    • Flutter model 3.27.0 on channel secure at /Customers/bahadirarslan/Improvement/SDKS/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8495dee1fd (9 days in the past), 2024-12-10 14:23:39 -0800
    • Engine revision 83bacfc525
    • Dart model 3.6.0
    • DevTools model 2.40.2

[✓] Android toolchain - develop for Android gadgets (Android SDK model 35.0.0)
    • Android SDK at /Customers/bahadirarslan/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Purposes/Android Studio.app/Contents/jbr/Contents/Dwelling/bin/java
    • Java model OpenJDK Runtime Atmosphere (construct 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Purposes/Xcode.app/Contents/Developer
    • Construct 16C5032a
    • CocoaPods model 1.15.2

[✓] Chrome - develop for the net
    • Chrome at /Purposes/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (model 2024.2)
    • Android Studio at /Purposes/Android Studio.app/Contents
    • Flutter plugin could be put in from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin could be put in from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java model OpenJDK Runtime Atmosphere (construct 21.0.3+-79915917-b509.11)

[✓] VS Code (model 1.96.0)
    • VS Code at /Purposes/Visible Studio Code.app/Contents
    • Flutter extension model 3.102.0

[✓] Related machine (4 out there)            
    • iPhone 16 Professional (cellular)          • B5611E87-5F6A-4178-ABAD-7B837493DE55 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 15.1 24B83 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 15.1 24B83 darwin-arm64
    • Chrome (internet)                    • chrome                               • web-javascript • Google Chrome 131.0.6778.205
    ! Error: Searching on the native space community for Bahadır’s iPhone. Make sure the machine is unlocked and hooked up with a cable or related to the identical native space community as this Mac.
      The machine have to be opted into Developer Mode to attach wirelessly. (code -27)
    ! Error: Searching on the native space community for Bahadir Arslan’s iPad. Make sure the machine is unlocked and hooked up with a cable or related to the identical native space community as this Mac.
      The machine have to be opted into Developer Mode to attach wirelessly. (code -27)
    ! Error: Searching on the native space community for Bahadır's iPad. Make sure the machine is unlocked and hooked up with a cable or related to the identical native space community as this Mac.
      The machine have to be opted into Developer Mode to attach wirelessly. (code -27)

[✓] Community assets
    • All anticipated community assets can be found.

• No points discovered!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles