-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library not found for -lAppAuth #973
Comments
Hi @vic2tee4u, I've managed to build an app on iOS using the react native and react-native-app-auth versions you have listed. Assume you've tried the usual |
Yes, I've gone through that. I also noticed that this issue has happened in the past for other folks here but it never seems to have a resolve. |
Seems people have had some success with changing the deployment target Would this perhaps be a viable option? Or upgrading to the latest versions of both this lib and react native? |
Because we are already in xcode 15 (Apple mandated this) and the minimum target cannot be below 12.4, that is not a viable option for us. |
Any joy with removing $(inherited) from "Library Search Paths" in Project Build Settings? |
I will give that a try now and see if that helps |
Which install method did you use for installing the native dependencies? Ref: https://github.com/FormidableLabs/react-native-app-auth?tab=readme-ov-file#install-native-dependencies |
I used the first method. Cocoapod. |
Check your pod versions in the In general, the error for Usually when you run into this situation its best to first check the dependencies, then check your linker configuration. Finally, perform a clean of the project build and dependency output. |
If all else fails, could also try the nuclear approach |
Let me give the above two options a try and report back. |
Gave the above two approaches a try and they still yield the same error. |
@vic2tee4u Just wondering if you used the diff generated by https://react-native-community.github.io/upgrade-helper/ to upgrade? |
Yes I used the helper |
I am getting this issue? |
Issue
I just recently upgraded my company's React native from 0.68.0 to 0.73.6. When attempting to build, I run into the issue above alongside
Library not found for -lAppAuth
Linker command failed with exit code 1 (use -v to see invocation)
We used to be on react-native-app-auth version 6.4.3 but since the issue started, I moved up to 7.1.3 but to no avail.
We are also using x-code 15. I am on Mac M2 (already using xcodeworkspace). We have bee stuck on this for about three weeks now.
Environment
e.g. IdentityServer 4 / Okta / Azure
iOS / Android / both
react-native
Version:e.g. 0.72.1
react-native-app-auth
Version:e.g. 7.0.0
System:
OS: macOS 14.4.1
CPU: (12) x64 Apple M2 Pro
Memory: 11.58 MB / 16.00 GB
Shell:
version: 3.2.57
path: /bin/bash
Binaries:
Node:
version: 20.13.1
path: ~/.nvm/versions/node/v20.13.1/bin/node
Yarn:
version: 1.22.21
path: /opt/homebrew/bin/yarn
npm:
version: 10.5.2
path: ~/.nvm/versions/node/v20.13.1/bin/npm
Watchman:
version: 2024.04.08.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.0
- iOS 17.0
- macOS 14.0
- tvOS 17.0
- watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode:
version: 15.0.1/15A507
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 2.7.4
path: /Users/cs214440/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
The text was updated successfully, but these errors were encountered: