IOS:Troubleshooting:CompileError
iOS 개발중 발생하는 컴파일 에러와 관련된 문제점과 그 해결방법을 정리한다.
Apple Mach-O Linker Error
링커와 관련된 컴파일 에러로, 아래와 같은 메시지가 출력된다.
ld: warning: directory not found for option '-L"/Users/cwlee/Workspace/zekitalk/trunk/ios/zekitalk/third_parties/ShareKit2/Submodules/evernote-ios-sdk/UnitTests/3rdParty/OCMock"'
ld: warning: directory not found for option '-L"/Users/cwlee/Workspace/zekitalk/trunk/ios/zekitalk/third_parties/Admob"'
ld: library not found for -lGoogleAdMobAds
clang: error: linker command failed with exit code 1 (use -v to see invocation)
이럴 경우 Xcode Project Setting file(PROJECT_NAME.xcodeproj/project.pbxproj
)을 확인하여, 아래와 같은 형태로 작성되어 있는지 확인해 보자.
정상적인 경로가 아니라면 수정해주자. 경험상, 아래와 같은 형태로 입력된 경험이 있다.