-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's add the possibility to set custom checkoutsDir #3
Comments
Ah okay, this sounds like a good idea - are you able to share your pod install steps so that I can test before releasing? |
Hi, i'm facing same issue. Is there a temp code change that I can make until this fix is released? |
Hu @shahzadmajeed, I haven't started work on this as I'm not sure how these custom pods steps work. If you're able to give me an example of the code that changes the pods checkout directory then I can take a look! |
@maxchuquimia in my case the problem was SPM checkouts that Xcode put under deriveddata directory /Users/my_user/Library/Developer/Xcode/DerivedData/ProjectABC-dplbttsrwvxakmcyjcbmjrnmcxnv/SourcePackages/checkouts I fixed this issue by manually pointing xcgrapher to this path. I am not sure how Xcode generates this path per project (maybe there is some macro at project level that can be used from build settings?) |
Unfortunately xcgrapher is still throwing error for a file that does exits in one of swift package [main] The file “AccessibilityAdapter.swift” couldn’t be opened because there is no such file. |
I was also facing the After clearing Derived Data I noticed that in fact the checkouts folder wasn't there. Turns out it's because we build only the
So I modified that line and hardcoded my xcworkspace like this:
And it goes past the
It relates to https://github.com/aws-amplify/aws-sdk-ios-spm - but I don't know what's the problem there, I have no leads 😬 @maxchuquimia is it possible that "xcworkspace" ends up needing to be a new StartingPoint? 😅 Any help would be appreciated! |
Hm, perhaps the "workspace" VS "project" difference isn't the key problem here, since I realized the "SomeApp" demo project also contains a xcworkspace (since it uses CocoaPods). I observed that the sample object contains only publicly-available Swift Packages, which's the not the case for my project at hand. In my case, the Swift Package dependencies are local packages - that could be the reason for other failures? Nonetheless, when attempting to run
|
…no such file." It seems perhaps the `swift package describe --json` command output changed recently as XCGrapher was not looking at absolute paths and therefore should never have worked in the past. Tests were failing when I began work on this today, and now they are passing again. This commit doesn't resolve the custom checkouts dir issue, however it is related to other conversation on Github issue #3.
Thanks for all the detailed info @rogerluan! cc1ae06 hopefully fixes both yours and @shahzadmajeed's no such file error.. and yes, I use other xcworkspaces with XCGrapher and it's fine so not too sure what's going on there... though if you reckon that passing a workspace somehow allows you to proceed further then I'm happy to add a The artifact not found for target 'AWSKinesisVideo' error seems to be coming directly from the |
Hey @maxchuquimia! I hadn't seen that commit of yours earlier, so I debugged the "no such file" error and yesterday I came up with a solution for it, which's significantly different from yours in that commit 😅 I'll open a PR with it soon, so you can take a look at my approach. I've been working on finishing up the Next for me will be add support to local swift packages, so hit the ultimate goal I've been seeking with this tool. During that process I'll probably have to check what's up with that |
Just to keep you on the loop, I was able to implement the support for local swift packages 🎉 but I still need to write proper tests for it. Bad news is that I simply ignored the fact that |
Ah I just added that commit after seeing your comment!
🎉🎉🎉🎉 Saw a few PRs come through, will take a peek now
Oh that might just be the case eh - yeah, the only thing we can do is work around it... I'd be a bit worried about a general flag to ignore problematic packages in case it just gets enabled and causes problems in the future: perhaps we could have |
I'd be happy with either of those solutions @maxchuquimia 😊 |
…hanged recently as XCGrapher was not looking at absolute paths and therefore should never have worked in the past. Tests were failing when I began work on this today, and now they are passing again. This commit doesn't resolve the custom checkouts dir issue, however it is related to other conversation on Github issue #3. Note: the above message/s are left intact for historical purposes. This branch was rebased after merging #6 (which contained code originally from this branch)
Okay, I pushed ef3aa06 just now (it's the second solution), please let me know if it works (I had some trouble adding AWS into the sample project so couldn't test it) and if so I'll figure out the best way to write tests for it! |
I happen to have also had trouble adding AWS into the sample project, actually. Its "Nimble" dependency conflicts in a weird way with the other dependencies 😬 I replied to some of the comments there 🙏 |
Hmm okay - are you able to give it a run against whatever project you mentioned in your first comment on this issue? |
Thanks for checking! I'll work on writing tests for it then merge 🎉 |
faced with the issue because have custom pods_install steps with moving folders
Got message:
[main] The folder “checkouts” doesn’t exist.
Seems need a param for setting
let checkoutsDir = derivedDataDir.appending("/SourcePackages/checkouts")
The text was updated successfully, but these errors were encountered: