react-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)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 16
  • Comments: 21 (6 by maintainers)

Most upvoted comments

@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.

@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

Have you run react-native link? If you have and you’re still getting the error, try running the example app and compare its config to yours on Xcode.