1. 程式人生 > >我的bug之 Undefined symbols for architecture arm64:

我的bug之 Undefined symbols for architecture arm64:

Undefined symbols for architecture arm64:   "_OBJC_CLASS_$_WeiboApi", referenced from:

解決方法:

這是使用騰訊微博的時候報錯的:

在你的專案中的appDelegate中

[ShareSDK connectTencentWeiboWithAppKey:kTencentWeiBoSDKAppKey
                  appSecret:kTencentWeiBoSDKAppSecret
                  redirectUri:kTencentWeiBoSDKRedirectUri
                    wbApiCls:[WeiboApi class]

];

替換成:
[ShareSDK connectTencentWeiboWithAppKey:kTencentWeiBoSDKAppKey
                                  appSecret:kTencentWeiBoSDKAppSecret
                                redirectUri:kTencentWeiBoSDKRedirectUri];