我剛剛更新到xCode 8和Alamofire 4.0,並且出現了一些奇怪的錯誤。第一個是一堆看起來像這樣的錯誤:Alamofire和更新爲Swift 3
... warning: Missing file: ... is missing from working copy
這正好爲Download.swift,Manager.swift,Stream.swift,Upload.swift和Error.swift。如何解決這個問題?
而且我得到了這一個,只爲alamofire,不爲任何其他我的圖書館:
「Use Legacy Swift Language Version」 (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
當我嘗試將其轉換,我得到
Could not find test host for FieldSenseAppTests: TEST_HOST evaluates to ..."
我似乎不能只是在Podfile取出並運行安裝吊艙之後,什麼也沒有發生,除去Alamofire?我可以看到我仍然安裝了不在我的Podfile中的豆莢嗎?也許是因爲我不能建立這個項目? – Recusiwe
關閉您的XCode。在Podfile中刪除它並運行pod安裝。然後將其添加回Podfile並再次運行pod安裝。這應該做的伎倆。 – dorjeozer
我仍然從上面提到的Alamofire那裏得到了同樣的錯誤。 – Recusiwe