2016-12-30 29 views
1

我已經使用Swift創建了一個新的iOS項目,並且在該項目中創建了新的文件項目 - > Cocoa touch framework。然後我去了我的終端,並執行以下命令:使用pod時不生成xcworkspace

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 
+0

運行'pod install' –

+0

正如我在我的評論中說的,我運行it.and它runn successfully.please檢查圖像,它只是沒有創建xcworkspace –

+1

解決方案在這裏http://stackoverflow.com/questions/39980096/xcode8-cocoapods-abort- trap6謝天謝地解決了它 –

回答

0

您必須使用以下命令來更新您的CocoaPods:

gem update cocoapods 
相關問題