swift compiler error : could not build objective-c module 'Firebase'
Google Firebase를 이용해서 Apple iOS 기기로 푸시 메시지를 보내기위해 작업중이다. Firebase에 iOS 앱을 추가하고 안내에 따라 진행을 하는 중 마지막 단계인 Firebase 코드를 추가하니 AppDelegate.swift파일의 import Firebase 라인에서 다음과 같은 에러가 발생했다.
google과 stackoverflow 검색을 해보니 역시나 많은 질문과 답변들이 있고 해결책들은 대동소이하지만 다음과 같다.
could not build objective-c module 'Firebase'
google과 stackoverflow 검색을 해보니 역시나 많은 질문과 답변들이 있고 해결책들은 대동소이하지만 다음과 같다.
- Quit Xcode.
- Delete project's temp files located at
~/Library/Developer/Xcode/DerivedData
- Delete
ProjectName.xcworkspace
- Delete
Podfile.lock
file andPods
folder - Run
pod install
. - Open the newly created
ProjectName.xcworkspace
file and build.
이와 같은 방법으로 여러 차례 시도해 보았지만 해겨이 되지 않았는데 여기서 중요한 것은 6번이다.
Xcode를 실행할때 Dock이나 Spotlight를 통해서 직접 실행하면 안되고 반드시 Finder에서 해당 프로젝트내에 있는 ProjectName.xcworkspace 파일을 더블클릭해서 Xcode를 실행해야 한다는 것이다. 이렇게 실행을 하니 오류가 바로 해결되고 빌드가 정상적으로 이루어졌다.
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