Hello!
I use Jenkins archive my project, throw this error:
[31m❌ ld: library not found for -lReactNativePermissions[0m
[31m❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)[0m
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.
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
@zhangyaweigithub Why did you ignore the issue template? https://github.com/yonahforst/react-native-permissions/blob/master/.github/ISSUE_TEMPLATE.md
@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:
npm install [email protected] (or whatever version you used before)react-native unlink react-native-permissionsnpm install react-native-permissions@latest --savereact-native link react-native-permissionsstill happened in [email protected]
react-native: 0.48.4
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