Skip to content

Problems with building a native watch app alongside my flutter app #43731

@jeanherfs

Description

@jeanherfs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityt: xcode"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions