upgrade-support
upgrade-support copied to clipboard
ld: library not found for -lAppAuth clang: error: linker command failed with exit code 1 (use -v to see invocation)
Environment
System: OS: macOS Mojave 10.14.6 CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz Memory: 1.02 GB / 16.00 GB Shell: 3.0.2 - /usr/local/bin/fish Binaries: Node: 12.4.0 - /usr/local/bin/node npm: 6.9.0 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 23, 24, 25, 26, 27, 28 Build Tools: 27.0.3, 28.0.3, 29.0.0 System Images: android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.6156.11.34.5522156 Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild npmPackages: react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 npmGlobalPackages: react-native-cli: 2.0.1 react-native-payments-cli: 0.2.0
Upgrading version
0.62.2
Description
Followed all the instructions and got to this point. I should mention that i've upgraded from 0.59.5 -> 0.60 -> 0.61 -> 0.61.5 -> 0.62.2. Now I'm stuck at the last bit.
The error is complaining about not being able to find that specific library. Previously there was also a warning right before this error stating that it's not being able to find the directory. I've fixed that by removing $(inherited) from Library Search Paths.
I've checked and that folder/library does in fact exist in that location
I've been having this issue for two days now and I've ran out of options from github/stackoverflow. (cleaning, deleting derived data, restarting..)
Reproducible demo
Tried to build the project but fails at Mach-O linker with the following error:
ld: library not found for -lAppAuth clang: error: linker command failed with exit code 1 (use -v to see invocation)
I ended up "solving" this by going back to the 0.61.5 commit and upgrading to 0.62.2 without including flipper (simply disregard anything about flipper in the upgrade helper; flipper might not be the reason but I'm not planning to use it anyways). After modifying the files from the upgrade helper I only did the first step https://github.com/react-native-community/upgrade-helper/issues/191 and it worked.
Same error here, I did first 3 steps from helper and everithing works, when I add 4 point (added Library search paths) app is start failing during build process.
I faced this error when had to change platform :ios, from '10.0' to '11.0' didn't use react-native-app-auth directly but likely used as peerDependency of google-signin
couldn't fix this and had to rollback to platform :ios, '10.0'