2014-11-08 44 views
0

调试iOS应用程序时出现错误,并且整天卡住了。发生架构错误的未定义符号

我所做的是:

  1. 通过的CocoaPods安装OAuth2Client库。
  2. 创建viewcontroller来显示谷歌登录页面。
  3. 调试时出现以下错误。

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_NXOAuth2Request", referenced from: objc-class-ref in GXLoginGoogleViewController.o "_OBJC_CLASS_$_NXOAuth2AccountStore", referenced from: objc-class-ref in GXLoginGoogleViewController.o "_NXOAuth2AccountStoreErrorKey", referenced from: ___54-[GXLoginGoogleViewController setupOAuth2AccountStore]_block_invoke60 in GXLoginGoogleViewController.o "_NXOAuth2AccountStoreAccountsDidChangeNotification", referenced from: -[GXLoginGoogleViewController setupOAuth2AccountStore] in GXLoginGoogleViewController.o "_NXOAuth2AccountStoreDidFailToRequestAccessNotification", referenced from: -[GXLoginGoogleViewController setupOAuth2AccountStore] in GXLoginGoogleViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经搜查了许多类似的话题,但我还没能解决。

任何人都可以提出任何方向来解决这个问题?

回答

0

So when I downloaded the project from github,我首先注意到的是,项目设置不起来很直观:

These Settings Should Be Changed

在目标的架构栏中的“$”应该切换到指定的iOS标准架构:

To iOS standard architectures

而在这一点上,你应该能够建立并在设备上运行。如果您还想支持模拟器,则需要添加“i386”作为体系结构。

相关问题