How to resolve the ONLY_ACTIVE_ARCH=YES error in Xcode 6?

瘦欲@ 提交于 2019-12-14 03:21:59

问题


I am running a project in Xcode 6 ,I am facing this error can any one help to resolve the issue . I has changed valid architecture to armv7 armv7s arm64 then the issue not shown again , but i was getting other error for file while is not support for 64 bit. I am getting below errors

 "_OBJC_CLASS_$_OAAsynchronousDataFetcher", referenced from:
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_OAConsumer", referenced from:
      objc-class-ref in SA_OAuthTwitterEngine.o
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_OADataFetcher", referenced from:
      objc-class-ref in SA_OAuthTwitterEngine.o
  "_OBJC_CLASS_$_OAMutableURLRequest", referenced from:
      objc-class-ref in SA_OAuthTwitterEngine.o
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_OARequestParameter", referenced from:
      objc-class-ref in SA_OAuthTwitterEngine.o
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_OAToken", referenced from:
      objc-class-ref in SA_OAuthTwitterEngine.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)



No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).

Waiting for response.


回答1:


I was facing same issue, I just Replace the Twitter Library with new Library that support arm64.

Please download the updated library from https://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master/Twitter%2BOAuth

and one more thing update library path on Buid Settings -> Library Search Path very carefully

Remember me in your prayers :)




回答2:


Go to Build Settings --->Architectures--->Build Active Architectures only--->Release -->NO


来源:https://stackoverflow.com/questions/26905212/how-to-resolve-the-only-active-arch-yes-error-in-xcode-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!