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

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 beneath. However I can run flutter construct ios terminal command, it really works as regular.

Launching lib/most important.dart on iPhone 16 Professional in debug mode...
Xcode construct completed.                                           40.4s
Didn't construct iOS app
Swift Compiler Error (Xcode): 'StateObject' is barely obtainable in iOS 14.0 or newer
/Customers/bahadirarslan/Growth/Flutter/myproject/ios/MyProjectpercent20Watchpercent20App/MainView.swift:10:5

Swift Compiler Error (Xcode): 'most important()' is barely obtainable in iOS 14.0 or newer
/Customers/bahadirarslan/Growth/Flutter/myproject/ios/MyProjectpercent20Watchpercent20App/MyProjectApp.swift:9:0

Swift Compiler Error (Xcode): 'Scene' is barely obtainable in iOS 14.0 or newer
/Customers/bahadirarslan/Growth/Flutter/myproject/ios/MyProjectpercent20Watchpercent20App/MyProjectApp.swift:12:19

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

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

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

Exited (1).
[✓] Flutter (Channel steady, 3.27.0, on macOS 15.1 24B83 darwin-arm64, locale en-TR)
    • Flutter model 3.27.0 on channel steady at /Customers/bahadirarslan/Growth/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 units (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 Setting (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 Setting (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 obtainable)            
    • iPhone 16 Professional (cell)          • 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 (net)                    • 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 connected 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 connected 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 connected 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 sources
    • All anticipated community sources can be found.

• No points discovered!

author avatar
roosho Senior Engineer (Technical Services)
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog. 
rooshohttps://www.roosho.com
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog. 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here


Latest Articles

author avatar
roosho Senior Engineer (Technical Services)
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog.