已安装CocoaPod,但看不到Swift代码 [英] CocoaPod installed but doesn't see Swift code

查看:59
本文介绍了已安装CocoaPod,但看不到Swift代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力将



什么会错吗?



谢谢。



P.S。 Xcode不会抱怨不遵守协议,只是对这个协议一无所知(使用未声明的类型...)。

解决方案

好吧,库已更新,集成最终顺利进行。发生问题是因为该库的先前版本使用的是内部访问修饰符,而CocoaPods却看不到或只是忽略了它们。


I've been struggling with integrating an ImagePicker library into my project. CocoaPods website shows this pod correctly except for the documentation even though it's documented, guess it simply doesn't see the code...

Steps to recreate my issue:

Install a pod through CocoaPods.

platform :ios, '9.0'
target 'TestProject' do
  use_frameworks!
pod 'ImagePickerKit', '~> 0.2'
end

Import ImagePickerKit module and try to implement some protocol...

What can be wrong?

Thank you in advance.

P.S. Xcode doesn't complain about not conforming to a protocol, it simply doesn't know anything about this protocol ("Use of undeclared type ...").

解决方案

Okay, the library was updated and integration finally went well. The problem occurred because the previous versions of this library were using internal access modifiers which CocoaPods didn't see or just ignored.

这篇关于已安装CocoaPod,但看不到Swift代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆