0

我在 Xcode 6 中运行一个项目,我正面临这个错误,任何人都可以帮助解决这个问题。我已将有效架构更改armv7 armv7s arm64 为该问题未再次显示,但我在不支持 64 位时收到其他文件错误。我得到以下错误

 "_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).

等待答复。

4

2 回答 2

1

我遇到了同样的问题,我只是用支持 arm64 的新库替换 Twitter 库。

请从https://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master/Twitter%2BOAuth下载更新的库

还有一件事非常仔细地更新了Buid Settings -> Library Search Path上的库路径

在你的祈祷中记住我:)

于 2015-10-12T10:56:17.570 回答
0
Go to Build Settings --->Architectures--->Build Active Architectures only--->Release -->NO
于 2014-11-13T09:32:07.870 回答