2

How can I edit or install the framework swift file in Xcode via Carthage?

In this screenshot only have 2 file, Why? How to install the swift file in it? So that I can modify it.

enter image description here

What I want to do is change some code in PieChartRenderer.swift. What I want to modify: Here is the link

File location: Carthage > Checkout > Charts > Source > Charts > Renderer > PieChartRenderer.swift

I followed Usage on the README.md. I have completed this 4 step.

  1. Drag the Charts.xcodeproj to your project
  2. Go to your target's settings, hit the "+" under the "Embedded Binaries" section, and select the Charts.framework
  3. @import Charts
    • (Xcode 8.2+) Under "Build Options", mark "Always Embed Swift Standard Libraries"

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

Sorry, I'm new in Carthage.

Lester
  • 701
  • 1
  • 9
  • 47

2 Answers2

0

The source is under the Carthage folder: Carthage/Checkouts/Frameworkname/source

DevB2F
  • 4,674
  • 4
  • 36
  • 60
  • Got screenshot? Because I can't see show package content option when I right click the charts.framework in Xcode. But I saw it when right click the charts.xcodeproj on finder. – Lester Nov 28 '17 at 16:32
  • Ya, I edited the code in there but no effect. @DevB2F – Lester Nov 29 '17 at 02:24
-2

1 cd [project_name]

2 carthage build --no-skip-current

https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#carthagebuild

  • 1
    KittipongKJ Please augment your code-only answer with some explanation, in order to help fighting the misconception that StackOverflow is a free code writing service. – Yunnosch Nov 14 '19 at 07:40