Swift3 Cocoapods与xcode 8的集成问题
我一直在尝试使用Cocoapods和的函数来集成到我的项目中 但是,我总是会出现诸如“没有这样的模块”或“类不可用,找不到此模块的Swift声明”之类的错误 我使集成以某种方式工作(一次),但现在又回到了错误 我所做的只是将我的项目方案更改为OpalImagePicker模块,并运行它直到成功,然后返回到我的项目和clean+build,并继续从“linkbinary with Libraries”,clean+build中删除和添加框架 有没有人在整合Cocoapod的过程中遇到过这样的问题 更新为Podfile:Swift3 Cocoapods与xcode 8的集成问题,swift3,cocoapods,xcode8,ios10,Swift3,Cocoapods,Xcode8,Ios10,我一直在尝试使用Cocoapods和的函数来集成到我的项目中 但是,我总是会出现诸如“没有这样的模块”或“类不可用,找不到此模块的Swift声明”之类的错误 我使集成以某种方式工作(一次),但现在又回到了错误 我所做的只是将我的项目方案更改为OpalImagePicker模块,并运行它直到成功,然后返回到我的项目和clean+build,并继续从“linkbinary with Libraries”,clean+build中删除和添加框架 有没有人在整合Cocoapod的过程中遇到过这样的问题
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'BPMatters' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for BPMatters
pod 'OpalImagePicker'
target 'BPMattersTests' do
inherit! :search_paths
# Pods for testing
pod 'OpalImagePicker'
end
target 'BPMattersUITests' do
inherit! :search_paths
# Pods for testing
pod 'OpalImagePicker'
end
end
更新错误屏幕截图:
更新你的pod文件,并将你的pod添加到use\u frameworks一行下面
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'BPMatters' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for BPMatters
pod 'OpalImagePicker'
target 'BPMattersTests' do
inherit! :search_paths
# Pods for testing
end
target 'BPMattersUITests' do
inherit! :search_paths
# Pods for testing
end
end
请确保在XCode中关闭您的项目,然后双击BPMatters.xcworkspace文件将其打开。您的pod文件的配置方式有问题。你能把它贴出来,让我们看看吗。此外,还有很多问题需要回答如何解决
没有这样的模块“XXX”
,可能不是您的框架。浏览一下,它可能会给你一些解决这个问题的方法。我已经用播客文件更新了我的问题。我一直在研究“没有这样的模块XXX”,并尝试了各种方法,但到目前为止都不起作用:\n确保您正在打开.xcworkspace而不是.xcodeproj文件。@digit是的,我正在使用.xcworkspace将pod OpalImagePicker
移到末尾,并将其从所有目标中删除。