首頁  >  問答  >  主體

ios - 添加静态库后报错

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中文网2712 天前348

全部回覆(1)我來回復

  • 天蓬老师

    天蓬老师2017-04-17 17:56:04

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

    ![圖片上傳...]

    回覆
    0
  • 取消回覆