我正在尝试在项目中安装ReactiveSwift / ReactiveCocoa并且没有运气 . 起初我对Xcode报告的关于我对ReactiveCocoa代码的尝试的奇怪错误感到困惑:
但是,进一步检查表明Xcode正在构建React,ReactiveSwift和ReactiveCocoa框架,但未能正确集成它们 .
我的问题是:如何解决问题,以便Xcode正确地将所有内容放在一起?我的Podfile中找不到任何明显错误的内容 .
project ‘CitiTakeHome.xcodeproj'
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'CitiTakeHome' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for CitiTakeHome
# pod 'ReactiveSwift'
pod 'ReactiveCocoa'
target 'CitiTakeHomeTests' do
inherit! :search_paths
# Pods for testing
end
target 'CitiTakeHomeUITests' do
inherit! :search_paths
# Pods for testing
end
end
其他可能相关的信息:在macOS High Sierra 10.13.2上运行的Xcode版本9.2(9C40b) .
知道出了什么问题吗?提前感谢任何人都可以提供的帮助 .
2 回答
你已经注释掉了'ReactiveSwift' . 取消注释这一行,一切都会好的 .
这是代码的样子: