GoldenOwlAsia / react-native-twitter-signin

MIT License
167 stars 303 forks source link

[Error] ld: building for iOS Simulator, but linking in dylib built for iOS,file '~/ios/Pods/TwitterCore/iOS/TwitterCore.framework/TwitterCore' for architecture arm64 #202

Closed little-buddy closed 10 months ago

little-buddy commented 10 months ago

I know it's the simulator architecture, but I can't keep debugging on real machines, so has anyone fixed that? Or is everyone using the real machine?

image

Who can help me? Simulator can't build, but device is good 😂😂😂

little-buddy commented 10 months ago

Thanks to the community, I was able to solve this problem.😄

See Stackoverflow

little-buddy commented 10 months ago

Perfect solution below

When creating a static library, a version will be packaged separately for the actual device (arm64) and the simulator (x86_64). On Intel Mac, there is no problem with the simulator using x86_64 instructions, but there will be problems on M1 Mac. After excluding the arm64 architecture, the simulator will still run in the arm64 mode, but the app in the simulator runs in the x86 mode.