,出現以下錯誤的鬥爭pod spec lint BSTableViewReorder.podspec --verbose
後:xcodebuild聯編:返回一個不成功的退出代碼
=== CLEAN TARGET BSTableViewReorder OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies 「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. 「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. ** CLEAN FAILED ** The following build commands failed: Check dependencies (1 failure) === BUILD TARGET BSTableViewReorder OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies 「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. 「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. ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) -> BSTableViewReorder (1.4.3) - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. Analyzed 1 podspec. [!] The spec did not pass validation, due to 1 error.
任何想法如何解決這個?
是的,但沒有成功 –
快速瀏覽一下:https://wartalker.me/a/57be39687467948796a76087。您需要具有「SWIFT_VERSION」生成設置。 (Xcode 8相關) – ThorstenC
其實我相信缺少的SWIFT_VERSION構建設置位於cocoapod生成的臨時App.xcodeproj上,用於測試構建該窗格,而不是在窗格本身上。 –