프로그래밍/Xcode-iOS
iOS _OBJC_CLASS_$_ASIdentifierManage referenced from: objc-class-ref in
Mr-후
2019. 4. 27. 09:30
반응형
오래된 프로젝트의 Podfile.lock파일을 삭제하고 Pod install명령을 통해 lock파일을 다시 생성했더니 몇가지 달리진게 있는지 제목과 같은 컴파일 오류가 나타났다.
당황스러움에 스택오버플로우를 찾아보니 다행스럽게도 해결책이 있어 쉽게 해결할 수 있었다.
아마도 구글 GA관련 된 라이브러리에서 추가된 기능들의 애플의 프레임워크를 필요로 하는 모양이다. 그래서 프레임워크를 하나 더 추가했다.
오류는 대략 다음과 유사하다.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in xxxxx.o(사용하는 객체)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
가장 명료한 답변이 있어서 추가해 본다. 나의 경우는 그랬다.
Build Phases에서
Link Binary With Libraries항목에
AdSupport.framework를 추가하고 빌드하면 성공되었다.
반응형