-
cocoaPods] 외부 라이브러리 제거후 다시 설치하기Programming/iOS 2020. 3. 4. 13:39
일단, 다시 제거후 설치 해야만 했던 에러를 살펴보자
Xcode Version: 11.3.1 / iOS 13.3.1
ErrorMessage] dyld: Library not loaded: @rpath/FBLPromises.framework/FBLPromises ....
... Reason: no suitable image found.
참고자료
Library not loaded: @rpath/FBLPromises.framework/FBLPromises iOS 13.3.1
My app crashes on lunch and getting this error: dyld: Library not loaded: @rpath/FBLPromises.framework/FBLPromises Referenced from: /private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-...
stackoverflow.com
You are probably using free developer account. Apple blocked utilizing external frameworks on free accounts with 13.3.1 upgrade. Try downgrading to 13.3.
iOS13.3.1 에서 무료 개발자 계정을 사용해서 발생하는 문제라고 한다
방법1. Xcode - Product - clean 을 해보자. 안되면 방법2로 넘어가라
방법2. Podfile 제거후, 다시 설치
1. Pods를 프로젝트 폴더에서 제거한다 (터미널 작업)
sudo gem install cocoapods-deintegrate cocoapods-clean
pod deintegrate
pod clean
rm Podfile
2. Podfile 생성 : pod init
3. Podfile 을 다음과 같이 수정한다.
target 'exampleproject' do use_modular_headers! //use_frameworks! 는 삭제 ...
4. pod install
5. open .xcworkspace 프로젝트 파일을 열고, Product > Clean Build Folder
6. 디바이스에서 빌드해서 동작 확인
참고] pod deintegrate 했을때, No such file or directory 에러가 난다면
sudo gem install -n /usr/local/bin cocoapods
'Programming > iOS' 카테고리의 다른 글
Firebase-smallProject] 1. 프로젝트 생성하기 (0) 2020.03.05 swift] fp - LowHigh (0) 2020.03.05 swift] fp - fizz buzz 리펙토링 (0) 2020.03.03 swift] fp - 함수형 프로그래밍 기초 (0) 2020.03.03 Timer 만들기 (0) 2019.11.06