Swift Cannot load underlying mo
2017-12-01 本文已影响388人
弹簧有弹力
swift 项目中,使用CocoaPods安装第三方库.
pod install
之后发现import没有提示
先添加Build Settings->All->User Header Search Paths 添加$(PODS_ROOT)
如下图

如果还是不能导入
在Podfile文件中加入source 'https://github.com/CocoaPods/Specs.git'

导入之后出现Cannot load underlying module for 'XXX'错误
执行Porduct->Build 就好了
如下图
