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

arm64 emulator build error #160

Open
sokolovdm opened this issue Jun 14, 2024 · 1 comment
Open

arm64 emulator build error #160

sokolovdm opened this issue Jun 14, 2024 · 1 comment

Comments

@sokolovdm
Copy link

Hi.
I get an error when I just run a development project - npm run ios

{ platform:iOS Simulator, id:547681FF-89E1-455C-B72A-5EB9DF6700BD, OS:17.2, name:iPhone 15 Pro Max }
** BUILD FAILED **


The following build commands failed:
        SwiftEmitModule normal arm64 Emitting\ module\ for\ pusher_websocket_react_native (in target 'pusher-websocket-react-native' from project 'Pods')
(1 failure)
]

When I try to build the application via xCode I get this error
Screenshot 2024-06-14 at 12 33 05

@endruuu
Copy link

endruuu commented Dec 17, 2024

How about adding this to your Podfile?

    installer.pods_project.build_configurations.each do |config|
      config.build_settings["VALID_ARCHS[sdk=iphonesimulator*]"] = "x86_64"
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

e.g.

  post_install do |installer|
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

    installer.pods_project.build_configurations.each do |config|
      config.build_settings["VALID_ARCHS[sdk=iphonesimulator*]"] = "x86_64"
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

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

No branches or pull requests

2 participants