Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

32
  • 12
    The extra detail about CocoaPods here is nice. Note that without [sdk=iphonesimulator*] after EXCLUDED_ARCHS, XCode will fail to find your pods when building for an actual device since none of the pods will be built for arm64. Commented Sep 22, 2020 at 17:34
  • 19
    Worked for me! Note that there is already a post_install do |installer| section in most Podfiles due to flipper. Paste the inner section installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end behind the flipper_post_install(installer) line. Commented Sep 29, 2020 at 9:59
  • 39
    I am getting building for iOS Simulator, but linking in object file built for macOS, for architecture x86_64. How to fix it? Commented Oct 1, 2020 at 13:56
  • 25
    This ends up working sometimes, but is actually wrong and broken. EXCLUDED_ARCHS for arm64 on the simulator means that people with Apple Silicon macs won't be able to use your framework. The fix that actually worked for me was to clear out VALID_ARCHS as per stackoverflow.com/a/63714000/234 Commented Dec 6, 2020 at 9:40
  • 7
    This is not an answer - it is a temporary workaround. You need to contact the vendors of your dependencies and ask them to vend proper XCFrameworks that contain the arm64 Simulator slice. Excluding the arm64 slice can significantly impact Simulator performance on M1 devices. Commented Feb 16, 2021 at 22:24