찾다

 >  Q&A  >  본문

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中文网2890일 전383

모든 응답(1)나는 대답할 것이다

  • 天蓬老师

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

    이런 상황은 CollectDeviceDataDictionary이 컴파일되지 않아서 발생합니다.
    먼저 이 클래스가 위치한 파일을 확인해야 합니다.
    그렇다면 아래 그림과 같이 해당 .m 파일을 추가해야 합니다.

    ![사진 올리는 중...]

    회신하다
    0
  • 취소회신하다