使用pod时没有生成xcworkspace

时间:2016-12-30 17:55:45

标签: ios swift xcode cocoapods

我使用Swift创建了一个新的iOS项目,在该项目中我创建了新的文件项目 - >可可触摸框架。然后我去了我的终端,并执行了以下命令:

pod init
open -a xcode podfile

我在podfile中写了以下内容:

 platform :ios, '9.0'
 use_frameworks!
 target 'Halgat' do
 pod 'SwiftyJSON'
 pod 'Alamofire'
 pod 'AlamofireObjectMapper', '~> 4.0'
 pod 'SCLAlertView'
 end

但是没有创建App.xcworkspace,我的问题是什么,怎么回事?

以下是我的文件夹的外观:

Xcode project navigator screenshot

我跑了pod install,终端输出了以下内容:

Analyzing dependencies
Downloading dependencies
Installing Alamofire (4.2.0)
Installing AlamofireObjectMapper (4.0.1)
Installing ObjectMapper (2.2.2)
Installing SCLAlertView (0.7.0)
Installing SwiftyJSON (3.1.3)
Generating Pods project
Abort trap: 6

1 个答案:

答案 0 :(得分:0)

您必须使用以下命令更新您的cocoapod:

gem update cocoapods
相关问题