cocoapods

【GEM】深入理解 cocoapods gem

旧时模样 提交于 2019-11-29 00:51:53
###比较gem,rvm,brew命令 ###深入理解几个命令 rvm Gem是封装起来的Ruby应用程序或代码库 Gems 类似RedHat的RPM.它将一个Ruby应用程序打包到一个gem里,作为一个安装单元。 无需安装,最新的Ruby版本已经包含RubyGems了。RubyGems(简称 gems) ruby bundle 相当于多个RubyGems批处理运行。在配置文件gemfilel里说明你的应用依赖哪些第三方包,他自动帮你下载安装多个包,并且会下载这些包依赖的包 source brew ,又叫Homebrew,是Mac OSX上的软件包管理工具 //mac 安装brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ###$ gem list gem list --local | grep cocoapods 查看ruby的本地包 *** LOCAL GEMS *** activesupport (4.1.8, 3.2.21) bigdecimal (1.2.0) CFPropertyList (2.2.8) claide (0.7.0) cocoapods (0.35.0, 0.34.1, 0.34.0)

CocoaPods安装和使用教程

有些话、适合烂在心里 提交于 2019-11-29 00:51:33
目录 CocoaPods是什么? 如何下载和安装CocoaPods? 如何使用CocoaPods? 场景1:利用CocoaPods,在项目中导入AFNetworking类库 场景2:如何正确编译运行一个包含CocoPods类库的项目 CocoaPods是什么? 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要 使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去下载所需 类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。如果能有什么工具能解决这些恼人的 问题,那将“善莫大焉”。所以,你需要 CocoaPods。 CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然 前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods。所以,作为iOS程序员的我们,掌握CocoaPods的使用是 必不可少的基本技能了。 如何下载和安装CocoaPods? 在安装CocoaPods之前,首先要在本地安装好Ruby环境。至于如何在Mac中安装好Ruby环境

CocoaPods安装和使用教程

♀尐吖头ヾ 提交于 2019-11-29 00:51:17
Code4App 原创文章。转载请注明出处: http://code4app.com/article/cocoapods-install-usage 目录 CocoaPods是什么? 如何下载和安装CocoaPods? 如何使用CocoaPods? 场景1:利用CocoaPods,在项目中导入AFNetworking类库 场景2:如何正确编译运行一个包含CocoPods类库的项目 CocoaPods是什么? 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。如果能有什么工具能解决这些恼人的问题,那将“善莫大焉”。所以,你需要 CocoaPods。 CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods。所以,作为iOS程序员的我们,掌握CocoaPods的使用是必不可少的基本技能了

AFNetworking not compatible with iOS 4.3

£可爱£侵袭症+ 提交于 2019-11-29 00:39:40
问题 I am using CocoaPods to install the AFNetworking library. Here is my simple CocoaPods file: platform :ios pod 'FMDB' pod 'AFNetworking' My Pods project and my main project are iOS 6 deployment target and base SDK. When I run the pod install I get the following error: AFNetworking not compatible with iOS 4.3 UPDATED: I edited my Podfile to this: platform :ios, '6.0' pod 'FMDB' pod 'AFNetworking' Now when I run pod install it shows the following: Updating spec repo `master' Cocoapods 0.15.1 is

Cocoapods 1.0: Header files not found

人盡茶涼 提交于 2019-11-28 23:52:28
问题 I just tried to update from cocoapods 0.39.x to Cocoapods 1.0. Running pod install from the terminal causes no warnings. Everything seems normal. However, when I try to build my project it outputs: AFNetworking/AFNetworking.h file not found My pod file looks like this (there are a few more dependencies but I only listed a part of it): platform :ios, '8.0' use_frameworks! source 'https://github.com/CocoaPods/Specs.git' target 'MyApp' do pod 'AFNetworking', '~> 2.6' pod 'BEMCheckBox' pod

What's the equivalent of “development pods” under Carthage?

女生的网名这么多〃 提交于 2019-11-28 23:49:25
The teams developing frameworks for our iOS app are migrating from Cocoapods to Carthage. Under Cocoapods, I could set up dependencies as "development pods". For example, instead of having the main app download a specific version of an xyzzy dependency, I could set up xyzzy as a development pod and point it to my local directory where I had checked out xyzzy from its Git repo. While I was working in the main app's project, any edits I'd do to xyzzy 's files would be made in that directory. This let me build and test changes immediately, and when I was ready to check them in, Git would find

CocoaPods not updating Firebase SDK to Version 4.0.0

僤鯓⒐⒋嵵緔 提交于 2019-11-28 23:16:21
I am trying to update my Swift project to Firebase's new SDK Version 4.0.0 using CocoaPods ( as suggested by the documentation ) but the updated SDK does not seem to be installing even when I follow the steps in the documentation . Can anyone help my understand why this is not working and what I can do to update to the new Firebase SDK? My Podfile # Uncomment this line to define a global platform for your project platform :ios, '9.2' # Uncomment this line if you're using Swift use_frameworks! target 'myProject' do pod 'Firebase' pod 'Firebase/Auth' pod 'Firebase/Core' pod 'Firebase/Storage'

Xcode 5 iOS 7 CocoaPods Linker Error

我是研究僧i 提交于 2019-11-28 22:50:39
I just upgraded my old project to new iOS 7. It was already using Cocoapods. I compile and run and everything works fine on the simulator and the device. I tried to archive it using Xcode and I get the following error. ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Any ideas! UPDATE: The architecture for the Pods project is set as the following: Standard architectures (armv7,armv7s) SOLUTION : Cocoapods has been removed from my project. Everything is good now! Sounds like you just needed to update cocoapods. For anyone else who

dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Reason: image not found

橙三吉。 提交于 2019-11-28 22:24:09
问题 I'm using CocoaPods v0.36 with my Swift project and the following pods: Alamofire , CocoaLumberjack , SwiftyJSON . Everything was fine till I used my Developer ID. Compiler started to have problems to compile the project, after some fixes and updates for CocoaPods my project compiles but at runtime I get the following error: dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Referenced from: /Users/Ivan/Library/Developer/Xcode/DerivedData/myApp

Added pod files and pushed. How to undo? how to use gitignore in Xcode & github?

元气小坏坏 提交于 2019-11-28 21:25:57
This is a two part question: 1) I have added committed and pushed all pod files to github. Is there a way I can remove them and not push them again to github? 2) I know gitignore can help, but I don't know how to use it. Can anyone please walk me through the process of using gitignore? so I think what I can do is, get the project from github, add gitignore, and then push again. is that correct? Please help, new to github & Xcode. That's correct, you need to add the Pods directory to your .gitignore 1) Remove your files from your github repository: git rm -r Pods/ and don't forget to commit and