-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Run Xcode command lines tools in native ARM #68050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
09d9954 to
99f7317
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked again, it exits 1 on x86 macOS 11, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is overkill. If Xcode and xcrun is installed, xcdevice is installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is new.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
christopherfujino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: doc comment please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
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