Run Xcode command lines tools in native ARM#68050
Conversation
09d9954 to
99f7317
Compare
There was a problem hiding this comment.
I checked again, it exits 1 on x86 macOS 11, too.
There was a problem hiding this comment.
This check is overkill. If Xcode and xcrun is installed, xcdevice is installed.
There was a problem hiding this comment.
This section looks like a big change, but it's mostly whitespace due to the the new group indentation. The changes in this file:
- Remove
xcrun --find xcdevicecommands. - Use
FakePlatforminstead ofMockPlatform. - Add the
sysctlARM check command where needed.
7964014 to
52203ef
Compare
There was a problem hiding this comment.
nit: doc comment please
fefd7ae to
097cd4c
Compare
|
@alexmarkley I know you've been offering to help out with ARM support. If you are still willing, it would be awesome if you could to take this change for a test drive and see where else the |
|
@jmagman thanks for tagging me! I will take a look later tonight. |
|
@jmagman first impressions. Ran Not sure what's going on with |
|
Seems like the simctl issue is preventing flutter from detecting physical devices plugged into the machine. Flutter doctor reports "No devices available" and flutter run in a hello world project yields: |
|
@jmagman uh oh, this is tricky: |
|
Oh! @jmagman I think you want this: As per this: This leads to some interesting behavior like this (running inside of iTerm, which is running under Rosetta): (And no, I have no idea why |
|
@jmagman that is somewhat baffling. I am on Beta 10 as of this afternoon, I wonder if that could factor in somehow? I assume Apple's intention in the long term is for the xcrun to spawn ARM processes because the caller is also an ARM process. I guess that's not going to be possible with Dart in the short term? |
|
@jmagman are you still running the image that it shipped with? https://betawiki.net/wiki/MacOS_Big_Sur_build_20A5299w I noticed some pretty significant changes around Beta 7 and following, so maybe an update is in order. 😉 |



Description
On macOS ARM machines run Xcode outside Rosetta without x86 translation by prepending commands with
arch -arm64.Only update the iOS
xcodebuildcode paths. More research needed to see what changesflutter build macosneeds.Related Issues
Fixes #65133
Tests
xcrun runs natively on arm64test, updatedxcruntests.Breaking Change