I have used use_frameworks!
in CocoaPods Podfile
many times. I just wonder why do we use it? I couldn't get the straight forward answer of it.
Example:
platform :ios, '8.0'
use_frameworks!
target "CityWhether" do
pod 'Alamofire'
pod 'SwiftyJSON'
end
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:
Sources: My other answer | AddThis.com Blog