ios - 添加静态库后报错
PHP中文网
PHP中文网 2017-04-17 17:54:04
0
1
368

Undefined symbols for architecture i386:
"_CollectDeviceDataDictionary", referenced from:

  -[IDMPAppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in IDMPAppDelegate.o
  -[IDMPAppDelegate locationManager:didUpdateLocations:] in IDMPAppDelegate.o

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

PHP中文网
PHP中文网

认证0级讲师

全部回覆(1)
Peter_Zhu

這種情況是因為CollectDeviceDataDictionary沒有被編譯而導致的。
首先,你要檢查一下,這個類別所在的檔案。
如果有,則需要在下圖所示的地方,將相應的.m檔案加入進入。

![圖片上傳...]

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板