swift compiler error : could not build objective-c module 'Firebase'

Google Firebase를 이용해서 Apple iOS 기기로 푸시 메시지를 보내기위해 작업중이다. Firebase에 iOS 앱을 추가하고 안내에 따라 진행을 하는 중 마지막 단계인 Firebase 코드를 추가하니 AppDelegate.swift파일의 import Firebase 라인에서 다음과 같은 에러가 발생했다.

could not build objective-c module 'Firebase'

google과 stackoverflow 검색을 해보니 역시나 많은 질문과 답변들이 있고 해결책들은 대동소이하지만 다음과 같다.

  1. Quit Xcode.
  2. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData
  3. Delete ProjectName.xcworkspace
  4. Delete Podfile.lock file and Pods folder
  5. Run pod install.
  6. Open the newly created ProjectName.xcworkspace file and build.

이와 같은 방법으로 여러 차례 시도해 보았지만 해겨이 되지 않았는데 여기서 중요한 것은 6번이다.
Xcode를 실행할때 Dock이나 Spotlight를 통해서 직접 실행하면 안되고  반드시 Finder에서 해당 프로젝트내에 있는 ProjectName.xcworkspace 파일을 더블클릭해서 Xcode를 실행해야 한다는 것이다. 이렇게 실행을 하니 오류가 바로 해결되고 빌드가 정상적으로 이루어졌다.

댓글

  1. Lucky Club Casino Site » Get A Free £10 Welcome Bonus
    Lucky Club casino has been in operation since 1997, offering a varied selection of casino games, with hundreds of luckyclub.live titles available. Rating: 7/10 · ‎Review by LuckyClub.live

    답글삭제

댓글 쓰기

이 블로그의 인기 게시물

iOS WebView Bottom Navigation 구현

iOS WebView Bottom Navigation Icon 적용

cURL error 60: SSL certificate: unable to get local issuer certificate