React-native-navigation: [v6 -> v7] library not found for -lReactNativeNavigation

Created on 2 Nov 2020  ยท  3Comments  ยท  Source: wix/react-native-navigation

โ“ Questions and Help

I just updated today from v6 to v7 and I can't build an Archive of my app anymore. Works fine when running the simulator tho.

I followed the required upgrade steps:

  1. package.json
- "react-native-navigation": "^6.12.2",
+ "react-native-navigation": "^7.2.0",
  1. Podfile
- platform :ios, '10.0'
+ platform :ios, '11.0'
  1. AppDelegate.m
+ - (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge {
+  return [ReactNativeNavigation extraModulesForBridge:bridge];
+ }

- [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions];
+ [ReactNativeNavigation bootstrapWithDelegate:self launchOptions:launchOptions];

When archiving, here is what I get:

ld: warning: directory not found for option '-L/Users/bneigher/Library/Developer/Xcode/DerivedData/Dieta-dpawevnwpycqmeaqmceawnuenbty/Build/Intermediates.noindex/ArchiveIntermediates/Dieta/BuildProductsPath/Release-iphoneos/ReactNativeNavigation'
ld: library not found for -lReactNativeNavigation

What I've tried:
pod deintegrate, delete podfile.lock, pod install
rm -rf /Users/bneigher/Library/Developer/Xcode/DerivedData/
XCode: Clean Builds
Manually linking libReactNAtiveNavigation.a in build phases

Any ideas?

questiostack overflow

Most helpful comment

@uragecz I believe for me I managed to get it working. In addition to setting the Podfile platform minimum sdk version - make sure to set the:
Deployment > iOS Target Deployment to version 11 in Xcode Build Settings
Screen Shot 2020-11-02 at 3 28 17 PM

All 3 comments

We use the issue tracker exclusively for bug reports and feature requests.
This issue appears to be a general usage or support question.
Instead, please ask a question on Stack Overflow with the wix-react-native-navigation tag or on Discord.

I have same problem... when building release version, i get -

can't locate file for: -lReactNativeNavigation
file: -lReactNativeNavigation is not an object file (not allowed in a library)

@uragecz I believe for me I managed to get it working. In addition to setting the Podfile platform minimum sdk version - make sure to set the:
Deployment > iOS Target Deployment to version 11 in Xcode Build Settings
Screen Shot 2020-11-02 at 3 28 17 PM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

switchtrue picture switchtrue  ยท  3Comments

edcs picture edcs  ยท  3Comments

bdrobinson picture bdrobinson  ยท  3Comments

Chipped1 picture Chipped1  ยท  3Comments

henrikra picture henrikra  ยท  3Comments