gpt4 book ai didi

swift - CorePlot 与 cocoa pod 0.38.2

转载 作者:行者123 更新时间:2023-11-30 14:08:53 26 4
gpt4 key购买 nike

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

在我的桥接文件中,我使用了

#import "CorePlot-CocoaTouch.h"

这里出现错误

"CorePlot-CocoaTouch.h" file not found.

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

提前致谢。

最佳答案

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

#import "CorePlot.h"

查看this question的答案有关使用 Objective-C pod 的 Swift 项目的更多故障排除提示。

关于swift - CorePlot 与 cocoa pod 0.38.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31986327/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com