Home  >  Q&A  >  body text

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中文网2766 days ago359

reply all(1)I'll reply

  • 天蓬老师

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

    This situation is caused by CollectDeviceDataDictionary not being compiled.
    First, you need to check the file where this class is located.
    If yes, you need to add the corresponding .m file as shown in the picture below.

    ![Picture uploading...]

    reply
    0
  • Cancelreply