【发布时间】:2016-01-30 06:28:19
【问题描述】:
我想在我的 Swift 项目中使用这个 Objective C pod:EAIntroView
Cocoapods 0.36 及以上版本引入了use_frameworks!操作说明 这意味着导入不需要桥接头 Swift 中的 Objective-C pod。
但我无法导入EAIntroView 并使用库的代码
这是我的 pod 文件
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
use_frameworks!
target 'PROJ' do
pod 'Koloda', '~> 2.0.3'
pod 'EAIntroView'
end
target 'PROJTests' do
end
target 'PROJUITests' do
end
【问题讨论】:
-
“你不能导入”是什么意思? cocoapods 或 Xcode 是否有任何错误?
标签: ios objective-c swift2 cocoapods