2017-09-21 67 views
0

RxCocoa版本3.6.1未能在Xcode 9建立與錯誤消息:的CocoaPods RxCocoa 3.6.1在Xcode中創建失敗9

Initializer 'init(parentObject:)' with Objective-C selector 'initWithParentObject:' conflicts with initializer 'init(parentObject:)' from superclass 'RxScrollViewDelegateProxy' with the same Objective-C selector  

回答

2

這似乎是由@objc推理引起的。奇怪的是,關閉Swift 3樣式的@objc推理似乎可以解決它。你應該在你的Podfile結束:

post_install do |installer| 
    installer.pods_project.targets.each do |target| 
    target.build_configurations.each do |config| 
     config.build_settings['SWIFT_VERSION'] = '3.2' 
     if target.name == 'RxCocoa' then 
     config.build_settings['SWIFT_SWIFT3_OBJC_INFERENCE'] = 'Off' 
     end 
    end 
    end 
end 

這將所有吊艙與雨燕3.2 RxCocoa一個禁用@objc推理來構建。