【问题标题】:CorePlot with cocoa pods 0.38.2带有可可豆荚的 CorePlot 0.38.2
【发布时间】:2015-08-13 10:58:49
【问题描述】:

我正在尝试将CorePlotcocoapods 版本0.38.2 一起使用。我正在使用 CorePlot pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.0'

在我的bridging 文件中,我使用了

#import "CorePlot-CocoaTouch.h"

这里出现错误

“CorePlot-CocoaTouch.h”文件未找到。

请告诉我是否需要进行任何更改。

提前致谢。

【问题讨论】:

    标签: swift cocoapods core-plot


    【解决方案1】:

    podfile 应包含use_frameworks! 行。将 Core Plot 构建为框架,导入语句应为:

    #import "CorePlot.h"
    

    有关使用 Objective-C pod 的 Swift 项目的更多故障排除技巧,请参阅this question 的答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 2018-06-07
      • 2017-08-03
      • 2018-04-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多