こんにちは。swift初心者です。
cocoapodsを使って、alamofire、JSONのライブラリを追加したく
ruby
1# Uncomment this line to define a global platform for your project 2 platform :ios, '8.0' 3# Uncomment this line if you're using Swift 4 use_frameworks! 5 6target 'rrs1' do 7 pod 'Alamofire' 8 pod 'SwiftyJSON' 9 pod 'Alamofire-SwiftyJSON', :git => "https://github.com/SwiftyJSON/Alamofire-SwiftyJSON.git" 10end 11 12target 'rrs1Tests' do 13 14end 15 16target 'rrs1UITests' do 17 18end
としたのですが、インストールすると
[!] [!] The Podfile does not contain any dependencies.
というエラーが出てきて、再度podfileを開くとファイルが保存されていないようです。
どうしたらエラーを出さずライブラリをインストールすることができるのでしょうか。
教えていただきたいです。宜しくお願いします。
あなたの回答
tips
プレビュー