Skip to content
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

Fix: Xcode 12.5+ build of iPhone Simulator on Apple M1 #32284

Closed
wants to merge 2 commits into from

Commits on Sep 28, 2021

  1. Fix react_native_pods post_install script

    Remove __apply_Xcode_12_5_M1_post_install_workaround() usage and make
    that function empty.
    
    Instead just force `$(SDKROOT)/usr/lib/swift` into the
    LIBRARY_SEARCH_PATHS, removing any
    `$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)` as that contains
    only i386+x86_64 in iphonesimulator, failing the build for M1 arm64
    simulators.
    barbieri committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    e203fe7 View commit details
    Browse the repository at this point in the history
  2. Do not exclude arm64 simulators

    The "project.pbxproj" file was being updated by team members running
    on x86_64 and arm64 as the file was being changed based on their
    hw.optional.arm64 value.
    
    Xcode 12.4 and on (at least, couldn't test on older versions) properly
    handle builds on both x86_64 and arm64.
    barbieri committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    4eb4461 View commit details
    Browse the repository at this point in the history