调试iOS应用程序时出现错误,并且整天卡住了。发生架构错误的未定义符号
我所做的是:
- 通过的CocoaPods安装OAuth2Client库。
- 创建viewcontroller来显示谷歌登录页面。
- 调试时出现以下错误。
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)
我已经搜查了许多类似的话题,但我还没能解决。
任何人都可以提出任何方向来解决这个问题?