Why do we use use_frameworks! in CocoaPods?

use_frameworks! tells CocoaPods that you want to use Frameworks instead of Static Libraries. Since Swift does not support Static Libraries you have to use frameworks. In another answer, I explained the differences between Static Libraries and Frameworks: Cocoa Touch Frameworks They are always open-source and will be built just like your app. (So Xcode will … Read more

Libraries not found when using CocoaPods with iOS logic tests

CocoaPods 1.0 has changed the syntax for this. It now looks like this: def shared_pods pod ‘SSKeychain’, ‘~> 0.1.4’ … end target ‘Sail’ do shared_pods end target ‘Sail-iOS’ do shared_pods end Pre CocoaPods 1.0 answer What you want to use is link_with from your Podfile. Something like: link_with ‘MainTarget’, ‘MainTargetTests’ Then run pod install again.

How do I specify multiple targets in my podfile for my Xcode project?

Since CocoaPods 1.0 has changed the syntax, instead of using link_with, do something like: # Note; name needs to be all lower-case. def shared_pods pod ‘SSKeychain’, ‘~> 0.1.4’ pod ‘INAppStoreWindow’, :head pod ‘AFNetworking’, ‘1.1.0’ pod ‘Reachability’, ‘~> 3.1.0’ pod ‘KSADNTwitterFormatter’, ‘~> 0.1.0’ pod ‘MASShortcut’, ‘~> 1.1’ pod ‘MagicalRecord’, ‘2.1’ pod ‘MASPreferences’, ‘~> 1.0’ end target … Read more

Installing CocoaPods: no response

For others wondering the same, installing the gem takes forever. If you run: export GEM_HOME=~/.gems export PATH=$GEM_HOME/bin:$PATH gem install cocoapods -V Installing with flag V enables verbose output which will let you see all the output as it is going through the download and install, it’s quite a lot.