我使用Cocoapods安装了RealmSwift。它安装成功,但在编译时显示96个错误as shown below
我尝试过在互联网上找到的所有解决方案。我已经解散了pod并再次安装,但我仍然遇到同样的错误。请帮忙!
答案 0 :(得分:0)
看起来Xcode正试图针对错误版本的Swift运行Realm Swift。我建议你尝试一些事情:
pod spec update
以将您的Realm本地副本更新为最新版本。 post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0.2'
end
end
end
如果仍然无法解决此问题,请使用您的podfile副本更新您的问题,以便我们对其进行审核。 :)