2016-09-17 53 views
0

我有一些問題和Xcode 8雨燕3.0的Xcode 8遷移莢

  1. 我已經將我.xCodeproject在SWIFT 3.0 sintax
  2. 我已經安裝了所有的CocoaPods與SWIFT 3.0
兼容

Here my pods

所以每個pod都需要傳統的swift版本或者xCode返回同上錯誤或者xCode返回一些關於pod sintax的錯誤。請幫幫我。

+0

什麼版本您使用的可可豆莢的,因爲我覺得他們固定在拉泰什這個傳統迅速事t beta – bolnad

+0

我使用最新的beta cocoapods – iLucas97

回答

1

刪除需要傳統快速版本手動更改爲YES任務的窗格,將此腳本添加到您的pod文件。它會通過你的豆莢,並將其設置爲使用3.0版本

post_install do |installer| 
    installer.pods_project.targets.each do |target| 
    target.build_configurations.each do |configuration| 
     configuration.build_settings['SWIFT_VERSION'] = "3.0" 
    end 
    end 
end 
+0

試過了,但xCode返回sintax swift錯誤 – iLucas97

+0

請將「3.0」更改爲「3.0」對您而言可能是正確的。 –

0

1.latest的Xcode 8

2,如果在你的項目中創建這樣則u爲此命令已經莢文件

open -e podfile 

然後

use_frameworks! 

    target '<your project name>' do 
     pod 'Alamofire', '~> 4.4' 
     //your all pod put here above end 
    end