如何解决ONLY_ACTIVE_ARCH = YES错误X code 6? [英] How to resolve the ONLY_ACTIVE_ARCH=YES error in Xcode 6?
问题描述
我在X code 6运行项目,我对着这个错误任何一个可以帮助解决这个问题。我已经改变了有效的架构,以的ARMv7 armv7s arm64
不会再次显示那么问题,但我是越来越了文件,而其他错误64位不支持。我得到下面的错误
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).
等待响应。
推荐答案
我面临同样的问题,我刚刚更换的Twitter库新库支持arm64。
I was facing same issue, I just Replace the Twitter Library with new Library that support arm64.
请从下载更新库的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
记住我在你祈祷:)
这篇关于如何解决ONLY_ACTIVE_ARCH = YES错误X code 6?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!