gpt4 book ai didi

ios - Cocoapods: 没有这样的模块 'CorePlot'

转载 作者:行者123 更新时间:2023-11-28 16:05:53 25 4
gpt4 key购买 nike

我有一个 Objective-C 项目。

  • 大部分文件都是用Objc写的
  • 几个自定义 UIView 类是用 Swift 编写的。
  • 特别是使用 Core-Plot 的 UIViewController 子类之一是用 Objc 编写的。

没问题,直到...现在,我正在尝试使用用 Swift 编写的 Core-Plot 创建一个新的 UIViewController

尝试使用 import CorePlot 导入外部框架 Core-Plot,如所述 here .但是编译器显示错误“没有这样的模块‘CorePlot’”

这是我的 Pod 文件:

platform :ios, '8.0'

target 'Meters' do
# use_frameworks!

# Pods for Meters
pod 'PQFCustomLoaders', '~> 1.1.0'
pod 'CorePlot'
end
  • 我已经使用了pod install 和'pod update'
  • 我试过“清理并重建”

都不适合我。如果需要任何其他信息,请告诉我。

最佳答案

您必须将 pod 构建为框架(在 pod 文件中取消注释 use_frameworks!)以创建模块。 Core Plot 将以这种方式正常工作,但我不知道您正在使用的其他 pod。

关于ios - Cocoapods: 没有这样的模块 'CorePlot',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40295998/

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