-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Please read carefully before closing as a duplicate!
This is related to #20392
But not the same issue as #16092.
The problem is not that there is no support for extensions but that an app that has a native watch app alongside it cannot run.
I created a flutter app with an accompanying apple watch app. The watch app is not written in flutter and is added as an extra target in the Runner project.
When I run both the app and the apple watch app from xcode they work fine.
When I try to run the iOS app (not even the watch app) from Intellij I get following error:
error: unable to resolve product type 'com.apple.product-type.watchkit2-extension' for platform 'iphonesimulator'.
This seems to indicate that flutter with IntelliJ always tries to run to the iPhone only, it does not support running to an iPhone simulator with a watch simulator.
Steps to reproduce:
create flutter app
add apple watch target through xcode.