Rumah  >  Soal Jawab  >  teks badan

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 hari yang lalu347

membalas semua(1)saya akan balas

  • 天蓬老师

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

    这种情况是因为CollectDeviceDataDictionary没有被编译导致的。
    首先,你需要检查一下,这个类所在的文件。
    如果有,则需要在下图所示的地方,将相应的.m文件添加进入。

    ![图片上传中...]

    balas
    0
  • Batalbalas