【问题标题】:Using Objective-c pod in Xcode 7.0.0 Swift 2 iOS9在 Xcode 7.0.0 Swift 2 iOS9 中使用 Objective-c pod
【发布时间】:2016-01-30 06:28:19
【问题描述】:

我想在我的 Swift 项目中使用这个 Objective C pod:EAIntroView

I found in this SO answer

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


【解决方案1】:

Cocoapods 编译成框架,尝试使用@import EAIntroView

【讨论】:

    猜你喜欢
    • 2017-06-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-08
    • 2016-03-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多