React-native-permissions: ld: library not found for -lReactNativePermissions

Created on 29 Dec 2017  ·  10Comments  ·  Source: zoontek/react-native-permissions

Hello!

I use Jenkins archive my project, throw this error:

❌ ld: library not found for -lReactNativePermissions
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)

I tried many ways, but I couldn't solve the problem.
I found ReactNativePermissions in Libraries, it lost a Physical folders, this is probably the cause of this mistake.

Most helpful comment

@zoontek oh! my fault! I'm using RN 0.46, xcode9
@tbazko @anarwade I've solved this question
[31m❌ ld: library not found for -lReactNativePermissions�[0m
�[31m❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)�[0m

Delate the Library "ReactNativePermissions.a" in Xcode-> build phases->Link Binary With Libraries
it will be ok,
For reference only

All 10 comments

Happens to me too, after upgrading to RN 0.50+

Same here. I'm using RN 0.51.0.
Seems like the android folder is missing

@zoontek oh! my fault! I'm using RN 0.46, xcode9
@tbazko @anarwade I've solved this question
[31m❌ ld: library not found for -lReactNativePermissions�[0m
�[31m❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)�[0m

Delate the Library "ReactNativePermissions.a" in Xcode-> build phases->Link Binary With Libraries
it will be ok,
For reference only

@zhangyaweigithub Which version of the lib? :)

@zoontek "react-native-permissions": "^1.0.4",

Try to update to the 1.0.6 (unlink before, link after), because this issue has been fixed.

@zoontek still having the exact same issue with 1.1.0 and RN 0.51.0

I've downgraded to 1.0.5 and it's working

The problem here is that updates _from_ 1.0.5- to anything 1.0.6+ need unlinking and relinking.

Follow the instructions on 1.0.6, or simply:

  1. If needed, roll back with npm install [email protected] (or whatever version you used before)
  2. Unlink: react-native unlink react-native-permissions
  3. Update: npm install react-native-permissions@latest --save
  4. Re-link: react-native link react-native-permissions

still happened in [email protected]

react-native: 0.48.4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iegik picture iegik  ·  19Comments

ppdbxdawj picture ppdbxdawj  ·  18Comments

rohitgoyal picture rohitgoyal  ·  20Comments

jessiealbarian picture jessiealbarian  ·  43Comments

note89 picture note89  ·  35Comments