首页 > 添加静态库后报错

添加静态库后报错

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)


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

![图片上传中...]

【热门文章】
【热门文章】