Undefined symbol: _OBJC_CLASS_$_CTTelephonyNetworkInfo

Xcode 报错:Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:

      objc-class-ref in libWeiboSDK.a(WBSDKPhoneCountryView.o)

      objc-class-ref in libWeChatSDK.a(MTAHelper.o)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


Showing Recent Messages

Undefined symbol: _OBJC_CLASS_$_CTTelephonyNetworkInfo

错误图示如下:


报错图示

这时候只需要选中工程项目,点击General,找到 Frameworks,Libraries,and Embeded Content ,点击下方加号,把CoreTelephony.framework添加进去就行了。运行发现报错消失了。

你可能感兴趣的:(Undefined symbol: _OBJC_CLASS_$_CTTelephonyNetworkInfo)