본문 바로가기

Tech/Tips

iOS 13.3.1 Firebase 연동 시 FBLpromises library not loaded 문제 해결법

반응형

이미지 출처 : Pixabay

iOS 개발 스터디를 하던 도중, CocoaPods를 사용하여 iOS 어플리케이션과 Firebase를 연동하던 중 다음과 같은 문제가 생겨 해결법을 공유하고자 합니다.

GoogleService-info.plist 파일을 추가하고, pod init, pod install을 통하여 프로젝트와 코코아팟을 연동하고 프로젝트명.xcworkspace 파일을 열어 기분좋게 빌드를 하면

콘솔 로그

dyld: Library not loaded: @rpath/FBLPromises.framework/FBLPromises 오류가 뜹니다.

구글링 결과 애플이 iOS 13.3.1 이상에서 무료 개발자 계정의 동적 라이브러리 사용을 제한했다는 소식이 있네요.

해당 버그와 관련된 토론은 다음 링크에서 확인할 수 있습니다.

 

Running iOS apps causes runtime error for frameworks "code signature invalid"

Every time I try to run this app it builds OK, and installs but as soon as it runs the app breaks and prints this error message. XCode 11 and iOS 13. dyld: Library not loaded: @rpath/

stackoverflow.com

코코아팟의 설정 파일인 Podfile에서 use_frameworks!를 주석처리하였고, pod update 후 xcode상에서 프로젝트 클린 재빌드시 어플리케이션이 정상 실행되고 파이어베이스 콘솔에서도 사용 통계가 잘 잡히는 것을 확인할 수 있었습니다.

 

정상 실행되는 PodFile 설정은 다음과 같습니다. (Firebase 단순 연동만 해주었습니다.)

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'test200215' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!

  # Pods for test200215

  target 'test200215Tests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'test200215UITests' do
    # Pods for testing
  end

  # add the Firebase pod for Google Analytics
  pod 'Firebase/Analytics'
  # add pods for any other desired Firebase products
  # https://firebase.google.com/docs/ios/setup#available-pods
end

 

반응형