Skip to content

fix: support running iOS simulator on Apple Silicon (arm64) - #194

Open
joelle-a-dev wants to merge 2 commits into
abner:masterfrom
joelle-a-dev:fix/support-for-silicon
Open

fix: support running iOS simulator on Apple Silicon (arm64)#194
joelle-a-dev wants to merge 2 commits into
abner:masterfrom
joelle-a-dev:fix/support-for-silicon

Conversation

@joelle-a-dev

Copy link
Copy Markdown

Description:

Problem

ios/flutter_js.podspec pinned VALID_ARCHS[sdk=iphonesimulator*] to x86_64 only, with a comment saying "Flutter.framework does not contain a i386 slice." This blocks the plugin from building/running on arm64 iOS simulators, which is the default on Apple Silicon Macs (requiring Rosetta workarounds otherwise).

Changes

  • ios/flutter_js.podspec: drop the x86_64-only VALID_ARCHS restriction so arm64 simulators are supported; bump minimum iOS deployment target from 8.0 to 13.0.
  • example/ios/Podfile: set platform :ios, '13.0' to match.
  • example/ios/Runner/AppDelegate.swift: update to the newer @main / FlutterImplicitEngineDelegate plugin registration pattern (required by the updated Flutter/Xcode toolchain used to verify the fix).
  • Regenerated Podfile.lock, project.pbxproj, Runner.xcscheme, and Info.plist accordingly.

Testing

Built and ran the example app on an Apple Silicon (arm64) iOS simulator.

Signed-off-by: Joelle Mahfoud <joelle_mahfoud@live.com>
Signed-off-by: Joelle Mahfoud <joelle_mahfoud@live.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant