본문 바로가기

반응형

cocoapods

(8)
Protocol Buffers - protobuf 는 무엇인가? (1/3) iOS dependency 인 cocoapods 를 사용하여 depdency 관리를 하다 보면 Podfile.lock 에 위와 같이 Protobuf dependency 가 설정된다. Protobuf 가 무엇이길래 이렇게 많이 보이는 것일까? 궁금하니 알아 보도록 하자. Cocoapods 를 단서로 검색해보자. (물론 google 에서 검색했으면 더 빨랐을지도 모른다...) https://cocoapods.org CocoaPods.org CocoaPods is built with Ruby and is installable with the default Ruby available on macOS. We recommend you use the default ruby. Using the default Ruby ..
ERROR ITMS-90635 ENABLE_BITCODE 설정때문에 발생하는 오류입니다. coocapods를 사용할 경우 pods안의 프로젝트들의 ENABLE_BITCODE가 true로 설정되어 발생합니다. podfile 안에 다음 코드를 추가하면 해결됩니다. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' end end end
ITM-90205, ITMS-90206 Extension 사용하는 앱을 upload to app store 할때 90205, 90206 에러가 동시에 발생하는 경우cocoapods가 원인.. 1. Open the (Your App).xcodeproj file (this is the first file on the project navigator pane). 2. Switch to the target for your app extension (on the top left of the middle pane). 3. Go to the Build Phases tab 4. Click the X after "Embed Pod Frameworks"https://github.com/CocoaPods/CocoaPods/issues/4203
ERROR ITMS-90206 "Invalid Bundle. The bundle at 'name.app/PlugIns/Extension.appex' contains disallowed file 'Frameworks'." Action Extension Target을 추가하여 이전까지 문제 없이 사용하고 있었다.오늘 업로드를 하는 과정에서 다음과 같은 오류가 발생하면서 더 진행이 되지 않는다......검색과 삽질 끝에 해결은 했다.Extension 자체는 Framework를 copy하지 않기 때문에 App이 가지고 있는 Framework를 사용해야 한다고 한다.cocoapods로 Extension Target에 framework를 추가했었는데 이 부분이 문제였다.이전 까지 문제 없다가 iOS9 출시 후 부터가 문제가 되기 시작했다.Extension Target에서 cocoapods의 흔적을 다 지우고 다음 링크에 있는 방법대로 하면 된다.https://hanseihee.wordpress.com/2015/01/14/xcode..
Error loading the plugin with path `/Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-0.6.0/lib/cocoapods_plugin.rb`. cocoapods 0.38.2 로 업데이트 후에 pod 명령어만 실행하면 아래와 같은 오류가 발생한다. Chopeui-MacBook-Pro:iOS-classic Chope$ pod --version --------------------------------------------- Error loading the plugin with path `/Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-0.6.0/lib/cocoapods_plugin.rb`. LoadError - cannot load such file -- /Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-0.6.0/lib/cocoapods_plugin.rb /System/Librar..
ChopeTableController 새로운 오픈소스를 하나 올렸습니다.ChopeTableController이름만 봐서는 UITableViewController의 subclass로 생각할 수도 있습니다. 하지만 그렇지 않습니다.이건 번거로웠던 UITableViewDataSource, UITableViewDelegate 구현의 번거로움을 줄여보자고 만들었습니다.두개의 protocol을 직접 구현하지 않고 데이터만 넘겨주면 바로 출력이 가능합니다.UITableViewCell에서는 ChopeTableCellDelegate를 구현해야 하지만 어렵지 않습니다.UIViewController에서 하던 작업을 Cell로옮겨서 UIViewController의 역할을 줄이는데 한몫하고 있습니다. 더 자세한 내용은 github의 README를 참고하세요. ht..
podspec에 외부 framework 추가 podspec을 이용하여 라이브러리를 만들때가 있습니다.dependency를 추가할때 cocoapods에 있는 library면 쉽게 추가가 가능하다. 하지만 *.framework 파일을 추가하려고 하니 cocoapods 사이트에서도 정보를 찾기 어렵습니다. 해결방법은 vendored_frameworks를 이용하는 것입니다. spec.vendored_frameworks = 'Framework/KakaoOpenSDK.framework' pod install 후 확인해 보면 잘 설정되어 있음을 확인할 수 있습니다.
ChopeToastView로 cocoapods 처음 등록 iOS에서도 Android의 Toast같은 형태로 메세지를 보여주는 일이 많습니다.Apple에서 제공하는 기능이 없어서 직접 구현해 보았습니다. http://cocoapods.org/?q=chope 기본 사용 방법은 다음과 같습니다.기본 애니메이션기본 출력시간[[ChopeToastView ToastViewWithMessage:@"TEST"] show]; 보여지는 시간을 지정할 수 있습니다.기본 애니메이션 [[ChopeToastView ToastViewWithMessage:@"TEST"] showWithDuration:1.0]; 애니메이션 지정도 가능합니다. [[ChopeToastView ToastViewWithMessage:@"TEST"] showWithAnimation:^(ChopeToastView *..

반응형