OGeek|极客世界-中国程序员成长平台

标题: ios - 如何通过 Carthage 在 Xcode 中编辑或安装框架文件? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:22
标题: ios - 如何通过 Carthage 在 Xcode 中编辑或安装框架文件?

如何通过 Carthage 在 Xcode 中编辑或安装框架 swift 文件?

在这个截图中只有 2 个文件,为什么?如何在其中安装swift文件?这样我就可以修改了。

enter image description here

我想做的是更改 PieChartRenderer.swift 中的一些代码。我要修改的内容:Here is the link

文件位置: Carthage > Checkout > Charts > Source > Charts > Renderer > PieChartRenderer.swift

我在 README.md 上关注了用法。我已经完成了这 4 个步骤。

  1. Charts.xcodeproj 拖到您的项目中
  2. 转到目标设置,点击“嵌入式二进制”部分下的“+”,然后选择 Charts.framework
  3. @import 图表

Current problem: I Dragged the Charts.xcodeproj from Checkout to my project. The code is work when I run it on stimulator. But when I stop it and open it again, the value line show up again. On real device, the modified code is no effect... Why?

enter image description here

抱歉,我是迦太基的新人。



Best Answer-推荐答案


源码在 Carthage 文件夹下:Carthage/Checkouts/Frameworkname/source

关于ios - 如何通过 Carthage 在 Xcode 中编辑或安装框架文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47524201/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4