Skip to content

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Jan 12, 2021

Add instructions for how to run iOS add-to-app host apps on Apple Silicon devices by explicitly excluding arm64 from the valid archs to run.

All add-to-app hosts will need to do this until flutter/flutter#64502 and friends are complete.

User confusion at flutter/flutter#71959
Sample code PR: flutter/samples#646

Screen Shot 2021-01-11 at 6 34 26 PM

@jmagman jmagman requested review from sfshaza2 and xster January 12, 2021 02:36
@jmagman jmagman self-assigned this Jan 12, 2021
@google-cla google-cla bot added the cla: yes Contributor has signed the Contributor License Agreement label Jan 12, 2021
Comment on lines +421 to +424
In your host app target, find the **Excluded Architectures** (`EXCLUDED_ARCHS`) build setting.
Click the right arrow disclosure indicator icon to expand the available build configurations.
Hover over **Debug** and click the plus icon. Change **Any SDK** to **Any iOS Simulator SDK**.
Add `arm64` to the build settings value.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This UI in Xcode is just complicated. Let me know if you have suggestions to make it clearer.

</ol>

## Apple Silicon (`arm64` Macs)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to mention any Flutter framework version or it doesn't matter?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this would be needed for any version since none of them support arm64 simulators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Contributor has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants