-
[iOS_MyInventory] 삽질의 흐름 - podfile 설정Project/[release] iOS - MyInventory 2020. 4. 2. 01:51
사건의 발단
iPhone 13.4 로 업데이트
-> Xcode 버전 업데이트
-> 프로젝트 실행
-> 에러에러에러에러
Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2 compiler: /Users/jsj/Downloads/realm-swift-4.3.2/examples/ios/swift-11.3/../../../ios/swift-11.3/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
위기
구글링...서치서치...
.....프로젝트 클린..팟 지우기......팟 새로깔기...
..라이브러리 빌드셋팅 손대기...클린클린....
....😱.....
절정
프로젝트 새로 만들어보기.....
....팟 설치하기...실행...에러.. ☠️...
갈등 해소
라이브러리만 안불러와지는 문제였기때문에... 커스텀 프레임워크에서 라이브러리를 다른 방법으로 넣을 수 있는지 찾아봄
하나의 Podfile 로 프로젝트에 물려있는 타겟을 관리가 가능했다!
에러났을때 프로젝트 구조:
- 커스텀 프레임워크를 생성하여 Add files to... 로 메인프로젝트에 .xcodeproj 파일 추가.
- 커스텀 프레임워크에서 외부 라이브러리를 추가할때 .framework 파일을 직접 프로젝트에 추가하는 방식을 사용.
변경한 프로젝트 구조:
- 메인프로젝트에 file - new - target 으로 프레임워크 추가
- 라이브러리는 podfile 하나로 제어
빌드 성공! 참고 사이트
하나의 Podfile로 여러 타겟/프로젝트에 사용하기 - jung2.net
iOS 프로젝트를 진행하다 보면, 하나의 workspace 안에 여러 개의 target 혹은 project를 두고 사용을 할 수 있다.이럴 경우, 각각의 target 혹은 project에서 별도의 podfile을 유지하는 방법도 있겠지만, 공통으로 추가되는 pod 라이브러리가 있다던지, 혹은 일괄 업데이트가 필요하다던지 하는 경우가 발생할 수 있다.나의 경우가 딱 이 경우 두가지에 모두 해당되었는데, 의외로 간단하게 해결할 수 있었다. 먼저 예시로 …
jung2.net
https://github.com/ClintJang/cocoapods-tips
ClintJang/cocoapods-tips
iOS 라이브러리를 관리하는 CocoaPods Tip정보 모음입니다. Contribute to ClintJang/cocoapods-tips development by creating an account on GitHub.
github.com
https://mrgamza.tistory.com/569
cocoapods. Library 등록 하기
cocoapod에 자신이 만든 Library를 배포하는 방법에 대해서 알아보도록 하겠습니다. 저 같은 경우에는 UITextView에 PlaceHolder가 없어서 만들어 두고 싶어서 개발하게 되었습니다. cocoapods이란? iOS 개발자가..
mrgamza.tistory.com
https://stackoverflow.com/questions/55745916/add-pod-dependency-with-source-to-podspec
Add Pod dependency with source to .podspec
I am trying to add the following dependency to my Podspec s.dependency 'Apollo/WebSocket', :git => 'https://github.com/apollographql/apollo-ios' Here's what I get in my Terminal whenever I try...
stackoverflow.com
'Project > [release] iOS - MyInventory' 카테고리의 다른 글
[iOS_MyInventory] 상품등록, RxSwift 사용해 보기 - 2 (0) 2020.06.18 [iOS_MyInventory] 상품등록, RxSwift 사용해 보기 (0) 2020.06.15 [iOS_MyInventory] 뷰 디자인 적용 (0) 2020.04.01 [iOS_MyInventory] Realm 적용 3 - todayExtension (0) 2020.03.22 [iOS_MyInventory] Realm 적용 2 - Struct 와 같이 사용하기 (0) 2020.03.21