? ReactiveCocoa git:(master) ? vim Podfile
? ReactiveCocoa git:(master) ? pod install
Analyzing dependencies
Downloading dependencies
Installing ReactiveCocoa (5.0.2)
Installing ReactiveSwift (1.1.1)
Installing Result (3.2.1)
[!] Pods written in Swift can only be integrated as frameworks;
add `use_frameworks!` to your Podfile or target to opt into using it.
The Swift Pods being used are: ReactiveCocoa, ReactiveSwift, and Result
“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.
在網(wǎng)上找了很多種答案,選擇Pods - ReactiveCocoa - Swift Compiler -Version - Use Legacy Swift Language Version,把Unspecified改成YES。發(fā)現(xiàn)還是報(bào)錯(cuò)。最后將ReactiveCocoa、ReactiveSwift和Result的Use Legacy Swift Language Version都改為NO才能解決。