Add Support to Local Swift Packages from SPM, Xcode Project & Workspaces#10
Add Support to Local Swift Packages from SPM, Xcode Project & Workspaces#10rogerluan wants to merge 24 commits into
Conversation
…ages # Conflicts: # Sources/XCGrapherLib/XCGrapher.swift
maxchuquimia
left a comment
There was a problem hiding this comment.
This is a huuuge amount of work and it looks good, well done! I've read through the code and left a few comments but haven't had time to play with it in Xcode yet - which I'd like to do after it's been rebased on top of our more recent merges, so will find some time for it later.
But, looking good so far!
|
Okay, I had a play with it in Xcode and looked at the diffs - seems it's almost there! A couple of things still to do:
On this last point, I compared what happens after manually deleting XCGrapher's derived data while the project is open in Xcode and then running |
Nice catch!
😳 what a newb mistake! haha but after thinking it through, there's no way to really mock a real path, right? What do you recommend changing it to?
Hum, that's a good hunch. That may be the case, yeah. Idk how to reproduce that issue you just mentioned, though, but we can move the .json sample file to a simple string in the codebase - so no resources. What do you think @maxchuquimia ? Could you test if that change makes it work for you? |
|
Oh man I went down a massive rabbit hole of going through commits to see which one introduced the issue -turns out the .framework wasn't there just because I had the Regarding the json - maybe put a token like $TEST_PATH in it instead of the URL and perform substitution of TEST_PATH to what you expect on the second line of Now that I can actually run tests, there seems to be a common failure: in Is there some additional setup I am maybe missing before it should work? Also, I have noticed another issue: it seems |
|
Hey @maxchuquimia sorry for the radio silence, I've been busy lately (but also on vacation 😂 ) so I've been MIA and will still be for some time. Feel free to address necessary changes if/when you can, and I'll review/come back to this when I can 🙏 |
|
No problem @rogerluan, millions of things going on here too so I haven't done any coding over the weekends at all, think it's gonna be a while until I get a good chunk of time to do anything anyway hahah |
|
@rogerluan @maxchuquimia Any chance of wrapping this up sometime soon? Looks very useful! |
|
Well, I was able to make a bit of progress in resolving the outstanding issues... see progress.patch.txt (resolves test paths and help not being printed) I can't seem to get the same result as the sample png in this PR's description - mine simply ignores the local dependency.. so not sure that this is ready to be merged yet |
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
|
I don't remember what state I left this PR in @maxchuquimia 😅 I'd have to revisit it... |
|
Useful feature, I wish I could already use it 👍 |
|
Unfortunately work has been halted here @eldaroid 🙈 I eventually used this branch to successfully generate charts for me, but ended up not following up to get this PR through completion 🫠 Feel free to checkout my branch and run it locally |
|
Hey @eldaroid if this branch works for you let me know and I'll consider manual testing and merging without the unit tests completed as I probably won't be focused on updating this project anytime soon 🫠 |
|
Does this branch fix the "[main] The folder “checkouts” doesn’t exist." error? |

Description
This PR resolves #8
NOTE: This PR branches off of #7 , please review that one first. Since I can only work off of GitHub Forks, I can't point this PR to that other branch 😞
Discussion
Feel free to ask as many questions as needed @maxchuquimia 🙇 There're a looot of changes haha
Please don't mind about code style issues (issues that would be caught by a linter) right now. We can fix those as we move forward with the linter PR 👍
Resources
These docs have helped me a lot: https://www.rubydoc.info/gems/xcodeproj/
Demo