Learn how to install and set up CocoaPods, a Cocoa dependency manager, and how use it to add third-party libraries and frameworks to your Swift projects.
I'm trying my hands on CocoaPods using your tutorial. I'm getting below error in console :
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
Couldn't download flavours!
I tried to solve this using solution provided in the forum itself but it didn’t worked. I’m using Xcode7.2. Please help!
I encounter an error “no such module MEProgressHUD” at the end of the tutorial. I checked and the bridging header is there, I am not sure why I still can’t compile and run the ice cream app?
the version of ‘Alamofire’ in the tut is 2.0.2 but the latest version is something like 3.13 as of this comment. iOS is 9.3 instead of 8…
question: can i omit version numbers in the Podfile? how do I get it to update everything by itself when there are updates to any frameworks or pods or whatever?
dklimana: I believe not only that it can, but it’s a must. Once I updated my pod file to iOS 9.0 and Alamofire 3.1.3 it was fine, but prior to updating that info it was still throwing secure transport errors. Make sure your target deployment version matches your pod version. Good luck.
BTW, I don’t know much about Ruby, but I believe you can add '~> ’ in front of the Alamofire version and it will attempt to grab the latest version, like so: pod ‘Alamofire’, ‘~> 1.0’ - I haven’t tried this, and as I said I’m not very familiar with Ruby, so anyone feel free to correct me.
Wow, what a great tutorial. I had no idea what CocoaPods does. Though I had a few problems when I tried to do the ‘pod init’ thing, I Googled the errors and solved the problem.
hi man!
This is a good tutorial for using CocoaPods. I’m just trying to install the cocoa pods on my Mac with sudo gem install cocoa… (on Terminal) but I’ve receive an ERROR: Error installing cocoapods:
activesupport requires Ruby version >= 2.2.2.
Could you or someone guide me to solve this, please?
pod ‘MBProgressHUD’, ‘~> 0.9.0’ install the latest minor version available.
How do I specify to install latest “patch” version available? for eg. 0.9.x
I am getting error even though I had installed cocoapods.
admin$ pod install [!] Unable to locate the CocoaPods.app application bundle. Please ensure the application is available and launch it at least once. Trace/BPT trap: 5
Stuck for few days. any help will be appreciated.
Thanks
Dear all,
I was reading this really useful tutorial but I have had several problem because Alamofire is now available in version 4.0.1.
I fix it using a different loadFlavors() version
Here my solution