当我在测试中编译我总是得到这个结果“没有这样的模块'RealmSwift'”。没有这样的模块'RealmSwift'
我在podfile中有以下内容。
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
# ignore all warnings from all pods
inhibit_all_warnings!
target 'App' do
use_frameworks!
pod 'RealmSwift'
pod 'Fabric', '~> 1.6.3'
pod 'Answers', '~> 1.3.5'
pod 'DropDown', '~> 2'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0' # or '3.0'
end
end
end
我试过了,我仍然得到相同的结果。
pod --version
pod cache clean Realm
pod cache clean RealmSwift
pod deintegrate || rm -rf Pods
pod install --verbose
rm -rf ~/Library/Developer/Xcode/DerivedData
我也删除了我的项目,文件“Podfile。锁定”和“应用程序。xcworkspace”的“豆荚”文件夹,然后我跑吊舱安装。
我在Xcode 8.3.3和斯威夫特3
在Xcode中构建时,您还会看到哪些其他错误(如果有)?无法找到模块通常表示模块(或其依赖的某个模块)无法构建。 – bdash
我添加了一个截图。 –