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

ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/rockey/WebstormProjects/app.next.com/node_modules/nodejs-mobile-react-native/ios/NodeMobile.framework/NodeMobile' for architecture arm64 #10

Open
rockey2020 opened this issue Mar 13, 2022 · 2 comments

Comments

@rockey2020
Copy link

my device is m1 MBP
Compilation fails on this platform

@JeremyEllingham
Copy link

Same problem for me, on one of the Intel chips.

Trying to set xcode settings to variations of Exclude Architecture x86_64, arm64 etc. doesn't work.

@winionian
Copy link

winionian commented Sep 21, 2023

See this solution from
https://ananda-gopal.medium.com/building-for-ios-simulator-but-linking-in-dylib-built-for-ios-file-for-architecture-arm64-a200bc991735
It has work for me.Must config Exclude Architecture at arm 64 in 2 place in Xcode

  1. At Project > {Project Name} > Build Settings > Architectures > Excluted Architectures > Debug > Any iOS Simulator SDK > add arm64
  2. At Podfile (After add code,Must new pod install to effect to project)
post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end
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

3 participants