Swift3でXcode8にアップグレードした後、私はCocoapodsがこれ以上サポートしていないことを発見しました。そこで私はCocoapodsを1.1.0rc2のベータ版にアップグレードしました。しかし、私がspec lintをポッドしようとすると、エラーが発生しました:Swift3のCocoapods 1.1.0 beta
- ERROR | xcodebuild: WeatherKit/WeatherKit/DateComponents+InitFromString.swift:11:11: error: use of undeclared type 'DateComponents'
- ERROR | [iOS] xcodebuild: WeatherKit/WeatherKit/CityLoader.swift:14:13: error: use of undeclared type 'DispatchQueue'
- ERROR | [iOS] xcodebuild: WeatherKit/WeatherKit/CityLoader.swift:19:11: error: use of unresolved identifier 'DispatchQueue'
- WARN | [iOS] xcodebuild: WeatherKit/WeatherKit/DirectionUnit.swift:20:15: warning: extraneous '_' in parameter: 'value' has no keyword argument name
- WARN | [iOS] xcodebuild: WeatherKit/WeatherKit/DistanceUnit.swift:19:15: warning: extraneous '_' in parameter: 'value' has no keyword argument name
Analyzed 1 podspec.
[!] The spec did not pass validation, due to 20 errors and 2 warnings.
20のエラーはすべてSwift3文法に関するものです。しかし、私はすべてのそれらの文法を許可する必要がありますXcode8を使用しています
私はこれで何ができるか知っていますか?
を解決しかし、私はロールバックするとき、これは「現れ - ERROR | [iOSの]不明:検証中に不明なエラーが発生しました(Simulator iPhone 4sは使用できません)。 –
私はiPhone 4SがXcode 8 simのオプションであるとは思っていません。 iPhone SEをお試しください。 –
しかし、それはCocoapodsと同じように動作しません。シミュレータをiPhone5に変更しようとしましたが、まだ動作しません。しかし、それは解決され、上記の私の答えを参照してください –