Skip to content

Cannot run simulator on M1 Mac #467

@mahenzon

Description

@mahenzon

I built XCode project using bazel (point 6 at README), trying to build the app and run it in the simulator, but getting this error:

In cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'ios_sim_arm64'

image

I think it's related to this line

'\'--cpu=ios_arm64\'.replace(\'ios_arm64\', \'ios_sim_arm64\' if os.environ.get(\'EFFECTIVE_PLATFORM_NAME\') '

ios_sim_arm64

There's some patch containing ios_sim_arm64, but I'm not sure how to apply it
https://gist.github.com/brentleyjones/17d8bcf308558a19dd54a30e4a6db57a

did you test it running on M1 Mac? I see the repo is updated for arm CPU, but I cannot run it on my machine because sim is not starting

Environment

Device: Apple MacBook Pro (13-inch, M1, 2020)

macOS version: 11.1 (20C69)


Some more screenshots in case it can help:

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions