React-native-app-auth: Release Build error ld: directory not found for option '-L/Users/xxxx/Release-iphonesimulator/AppAuth'

Created on 27 Jan 2018  路  3Comments  路  Source: FormidableLabs/react-native-app-auth

Hi,

I am trying to do a release build of the Example code in Visual Studio Code for iOS and got the following error.
Not quite sure how to resolve it, it happened to my own project as well (Debug works and I also followed the instruction and installed AppAuth through Cocoapods)

ld: library not found for -lAppAuth

Any help?

Most helpful comment

Hi @zyofeng - the Linked Libraries and Frameworks were not quite right in the example app. I've opened this PR to fix it. It is an issue with the example app, not the library itself.

That PR does the following:

  1. In XCode Project Settings -> General -> Linked Frameworks and Libraries
  2. Remove and re-add libAppAuth.a
  3. Remove libPods-AppAuthExample.a
  4. Add libRNAppAuth.a

Hopefully that will give you an idea of how to fix your release build as well. Hope this helps!

lipPods-AppAuthExample.a not found and not even libRNAppAuth.a

All 3 comments

Same issue in xcode.

Hi @zyofeng - the Linked Libraries and Frameworks were not quite right in the example app. I've opened this PR to fix it. It is an issue with the example app, not the library itself.

That PR does the following:

  1. In XCode Project Settings -> General -> Linked Frameworks and Libraries
  2. Remove and re-add libAppAuth.a
  3. Remove libPods-AppAuthExample.a
  4. Add libRNAppAuth.a

Hopefully that will give you an idea of how to fix your release build as well. Hope this helps!

Hi @zyofeng - the Linked Libraries and Frameworks were not quite right in the example app. I've opened this PR to fix it. It is an issue with the example app, not the library itself.

That PR does the following:

  1. In XCode Project Settings -> General -> Linked Frameworks and Libraries
  2. Remove and re-add libAppAuth.a
  3. Remove libPods-AppAuthExample.a
  4. Add libRNAppAuth.a

Hopefully that will give you an idea of how to fix your release build as well. Hope this helps!

lipPods-AppAuthExample.a not found and not even libRNAppAuth.a

Was this page helpful?
0 / 5 - 0 ratings