替换你的Podfile如下:
platform :ios, '9.0'
target 'RxStudy' do
use_frameworks!
pod 'RxSwift'
pod 'RxCocoa'
target 'RxStudyTests' do
#Add pod here if you want the access of pod in Tests target.
#Example: pod 'RxSwift'
end
target 'RxStudyUITests' do
#Add pod here if you want the access of pod in Tests target.
#Example: pod 'RxSwift'
end
end
Run Code Online (Sandbox Code Playgroud)
您的Podfile问题在于您尝试在测试目标中添加pod而不是实际项目目标.如上所述更改文件后,再次安装Pod,然后运行项目,即使您收到"No such module error",因为它可能是第一次发生.
您正在将pod插入测试目标中,而不是插入项目目标中.
真实的:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
target 'RxStudy' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for ProjectName
# Insert your pods here
pod 'RxSwift'
pod 'RxCocoa'
target 'RxStudyTests' do
inherit! :search_paths
# Pods for testing
end
target 'RxStudyUITests' do
inherit! :search_paths
# Pods for testing
end
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8264 次 |
| 最近记录: |