Solvedreact native app auth linker command failed - ld: library not found for -lAppAuth

screen shot 2018-06-17 at 16 11 00

screen shot 2018-06-17 at 16 11 05

ld: warning: directory not found for option '-L/Users/brkrtp/Library/Developer/Xcode/DerivedData/burak
-ceqbfdnxrzunipektpsftfekkcjw/Build/Products/Debug-iphoneos/AppAuth'
ld: library not found for -lAppAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
22 Answers

✔️Accepted Answer

@Jonny993 awesome! 🎉

.xcworkspace vs .xcodeproj can be super confusing especially if you're new to xcode 😬 - but the rule of thumb in this case is that if you're using pods, you have to open .xcworkspace.

Closing this issue as although you weren't the original author of the issue, I get the feeling the solution is the same.

Other Answers:

@Jonny993 are you sure you've opened the.xcworkspace file (instead of the .xcodeproj which doesn't see pods)?

I still get the same error. I tried everything. It has been a day I'm on this. Please can you help? The solution above did'nt help

Ok so, huge update!
I reverted all the updates done yesterday and tried to do the following:

  • react-native run-ios

Got sured that everything was building and working fine on IOS Simulator

  • opened up .xcworkspace file instead of .xcodeproj one
  • this time, I could navigate the xcode project inside the workspace (I couldn't yesterday, don't know why, something was messing up the entire project)
  • added team and provisioning profile from target, general tab
  • added iOS Developer from project, Code Signing Identity to everything

image

  • build with CMD+R command the app directly on device
  • inserted password when prompted
  • done!

So just to clarify.. I was having some kind of problems accessing the .xcworkspace and so I tried to do the build on the .xcodeproj, which gave the errors above.
Cleaned everything up, restarting from yesterday, following the react native guide on how to build the app on device and boom, everything was working fine