Skip to content

Undefined symbols for architecture arm64 / Does not contain bitcode (iOS) #20

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

Closed
serranoarevalo opened this issue Dec 5, 2016 · 3 comments

Comments

@serranoarevalo
Copy link

I'm getting the following error, when I try to build:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_OAuthManager", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I think I have followed the tutorial and have done everything as it says. Any ideas of how can I solve this??

@serranoarevalo
Copy link
Author

Okay so I fixed with this (#13) but now I'm getting

Build/Products/Debug-iphoneos/libOAuthManager.a(OAuthClient.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

@serranoarevalo serranoarevalo changed the title Undefined symbols for architecture arm64 (iOS) Undefined symbols for architecture arm64 / Does not contain bitcode (iOS) Dec 5, 2016
@serranoarevalo
Copy link
Author

I didn't know this but it seems that to be able to use cocoapods one has to set the ENABLE_BITCODE setting at Build Settings > Build Options > Enable Bitcode to No

Closing this but It might be useful to add this step to the Readme?

Thank you for this component, awesome work!

@smkhalsa
Copy link

smkhalsa commented Dec 6, 2016

I was running into the same issue, getting a Linker command failed error when I tried to build my XCode project.

Here's what worked for me...

  1. click on the OAuthManager.xcodeproj under Libraries
  2. go to Build Settings
  3. change "Enable Bitcode" to "Yes"
  4. change the scheme from {my project} to "OAuthManager"
  5. re-build the OAuthManager by going to the Product -> Build
  6. change the scheme back to {my project}
  7. Product -> Clean
  8. Product -> Build

brunolemos added a commit to brunolemos/react-native-oauth that referenced this issue Dec 21, 2016
Apple recommends it to be YES
auser added a commit that referenced this issue Jan 3, 2017
auser added a commit that referenced this issue Jan 3, 2017
* 'master' of github.com:fullstackreact/react-native-oauth:
  Enable bitcode (Fix #20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants