본문 바로가기
반응형

podfile5

플러터] Podfile is out of date This can cause issues if your application depends on plugins that do not support iOS or macOS. 책을 보면서 플러터 공부 중인데, 책이 너무 오래되었나보다. 책 소스 다운 받아 flutter run을 하니, 오류가 나왔다. Podfile의 의존성이 오래되서 그런거라고 한다. Podfile안의 의존성에 버전이 명시되지 않았다면 다 지우고 다시 실행하면 괜찮아질 것 같다. 다음은 macbook 노트북에서 프로젝트 디렉토리로 이동한 후, 삭제 명령어를 날린 기록이다. (역시 인터넷 검색을 통해 찾음) % flutter clean % rm -Rf ios/Pods % rm -Rf ios/.symlinks % rm -Rf ios/Flutter.. 2023. 7. 25.
target별 Podfile 작성하는 방법, def-end target을 두개로 나눴다. 배포용과 개발용 버전으로.. 의존성 관련하여 문제가 발생, 인터넷을 찾아보니 현답이 있길래 링크를 걸어둔다. source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.1' use_frameworks! def basic pod 'Firebase' pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'AFNetworking', '~> 3.0', :inhibit_warnings => true pod 'naveridlogin-sdk-ios' end target '_dev' do basic end target '_live' do basic end target별로 의존성을 관리해서 사용하.. 2020. 3. 16.
iOS _OBJC_CLASS_$_ASIdentifierManage referenced from: objc-class-ref in 오래된 프로젝트의 Podfile.lock파일을 삭제하고 Pod install명령을 통해 lock파일을 다시 생성했더니 몇가지 달리진게 있는지 제목과 같은 컴파일 오류가 나타났다. 당황스러움에 스택오버플로우를 찾아보니 다행스럽게도 해결책이 있어 쉽게 해결할 수 있었다. 아마도 구글 GA관련 된 라이브러리에서 추가된 기능들의 애플의 프레임워크를 필요로 하는 모양이다. 그래서 프레임워크를 하나 더 추가했다. 오류는 대략 다음과 유사하다. Undefined symbols for architecture i386: "_OBJC_CLASS_$_ASIdentifierManager", referenced from: objc-class-ref in xxxxx.o(사용하는 객체) ld: symbol(s) not found .. 2019. 4. 27.
1. Cocoa Pods 설치 및 Xcode프로젝트 설정 예제 1. Cocoa Pods 설치 및 Xcode프로젝트 설정 예제 만약 cocoapods이 설치되어 있고 setup이 끝난 상태라면 setup 다음 단계부터 진행한다. 맥의 터미널에서 다음 명령어를 실행한다. $ sudo gem install cocoapods Password: *** 일련의 설치 과정이 지난다. 다음, pod setup명령을 실행한다.$ pod setup Setting up CocoPods master repo작업과 함께 Setup이 진행된다. Setup completed Xcode에서 샘플 프로젝트를 생성하고 생성된 디렉토리로 이동 한 다음 PodFile을 생성한다. $ pod initPodfile이 생성된걸 확인 후 편집한다. (편집은 편한대로 ~ ) Podfile내용 중, pod 'A.. 2019. 2. 12.
diff: /Podfile.lock: No such file or directory diff: /Podfile.lock: No such file or directory 오늘 작업을 하면서 만난 오류 메시지. 잘 되던 cocoaPods의 갑작스런 오류라 당황했다. 자주 사용하지 않는 것이라 이런건 메모를 해 두는 것이 좋다. 당황하지 말고 다음과 같이 하면 간단하게 해결된다. 프로젝트 디렉토리에서 Podfile.lock 파일을 삭제한 뒤 터미널을 통해 다시 Pod를 Install한다. younghuui-MacBook-Pro:git younghumin$ pod install 끝! 2018. 5. 2.
반응형