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.

Archive error IOS: library not found for -lReact

See original GitHub issue

When I’m trying to make an archive via Xcode, I’m getting an error: " library not found for -lReact". I have deleted Derived Data and clean the project, however, I’m still getting this error.

React Native version:

React Native Environment Info: System: OS: macOS 10.14.6 CPU: (16) x64 Intel® Core™ i9-9980HK CPU @ 2.40GHz Memory: 6.69 GB / 32.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.15.0 - /usr/local/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 Android SDK: API Levels: 23, 24, 25, 26, 27, 28 Build Tools: 23.0.1, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.1, 27.0.3, 28.0.3 System Images: android-23 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-25 | Google Play Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom IDEs: Android Studio: 3.5 AI-191.8026.42.35.5791312 Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.10 => 0.59.10 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1 react-native-device-info: 2.0.0 react-native-gesture-handler: 1.4.1 react-native-git-upgrade: 0.2.7 react-native-maps: 0.25.0 react-native-reanimated: 1.2.0

Steps To Reproduce

  1. Create Archive for App Store

Describe what you expected to happen: Can create archive

Snack, code example, screenshot, or link to a repository:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

3reactions
SmartArraycommented, Oct 28, 2019

I have had the same issue when upgrading to RN 0.61.2. Just remove the references from the ‘Libraries’ group and you should be fine as React, React-Core, etc. will be installed via Pods

1reaction
moodsellercommented, Oct 17, 2019

Are you sure you are using RN 0.6 and higher? Because manual linking should not be a thing.

I was upgrading from RN 0.59 to 0.6x I have solved this problem by getting rid of every framework inside the libraries folder (because the .xcodeproj files don’t exist in the first place). That got my project up and running and got rid of the library not found errors during the process.

It seems that if you had linked any frameworks before - you have to let pods take care of integrating them. If the pods added references of those frameworks to the library folder then that I found is definitely the incorrect way to build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xcode archive "Library not found for -lReact-hermes" for ...
Currently using RN 0.65.1 with React 17.0.2. Tried adding libReact-hermes.a inside xcode "Link Binary With Libraries" but error still persists.
Read more >
ld: library not found for -lBoring… | Apple Developer Forums
I am building a CI/CD pipeline for my React Native application, and this is the IOS part. I am trying to build from...
Read more >
Lreact-Native-Webrtc While Archiving Product In Ios Xcode ...
Ld: Library Not Found For -Lreact-Native-Webrtc While Archiving Product In Ios ... not found error I was experiencing in Xcode packages and libraries...
Read more >
react native 063 ld: library not found for -lDoubleConversion
Since I updated my project to 0.63 whenever i build for profiling the app errors on ld: library not found for -lDoubleConversion.
Read more >
Building failing for both Android and iOS with Managed ...
ARCHIVE FAILED ** The following build commands failed: PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/ ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found