question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After updating to Xcode 12 I get The linked library 'libPods-*****.a' is missing one or more architectures required by this target: arm64.

See original GitHub issue

Description

After updating to Xcode 12 I get this error:

The linked library 'libPods-*****.a' is missing one or more architectures required by this target: arm64.

Anyone knows how can solve it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:86
  • Comments:68 (20 by maintainers)

github_iconTop GitHub Comments

316reactions
grabboucommented, Dec 1, 2020

For everyone running into

building for iOS Simulator, but linking in object file built for iOS for architecture arm64

Please upgrade to the latest CocoaPods (at least 1.10.0).

If doesn’t work:

Note: If you are using Hermes, this will not work. Go to the next workaround.

Please go to Build Settings -> Excluded Architectures -> Debug (or the schema you are using to run on an iOS Simulator) and add arm64 there. See https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios for more.

If doesn’t work:

Do it for both your project and Pods. If your project is named RNTestProject (react-native init RNTestProject), you will have to do it for RNTestProject and Pods. Remember to do it in both places, otherwise, the error will keep happening.

More information on this workaround is available in this StackOverflow issue: https://stackoverflow.com/a/64139830

Please keep in mind that this is workaround and not an official answer to the problem. We will investigate this and publish a recommendation once we have analysed all the pros and cons of each alternative solutions.

36reactions
justinjoyncommented, Sep 19, 2020

Running into this after I updated Xcode to v12.

ld: in /Users/user/Projects/example/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/user/Projects/example/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

On "react-native": "0.62.2"

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native on Apple Silicon M1 - The linked library 'libPods ...
xcodeproj The linked library 'libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64. I tried to add x86_64 ...
Read more >
Xcode12 build error. The linked fr… | Apple Developer Forums
The linked framework 'Pods_projectA.framework'is missing one or more architectures required by this target: arm64.
Read more >
M1 Build issue > The linked library 'libPods-mobile ... - YouTrack
M1 Build issue > The linked library 'libPods-mobile.a' is missing one or more architectures required by this target: arm64. ; Type, Bug B...
Read more >
React Native on Apple Silicon M1 - The linked library 'libPods ...
... Apple Silicon M1 - The linked library ' libPods -ProjectName.a' is missing one or more architectures required by this target : x86_64...
Read more >
How to get a React Native project to work on M1 mac
After updating to Xcode 12 I get The linked library 'libPods-*****.a' is missing one or more architectures required by this target: arm64.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found