-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Outdated SnapshotHelper.swift
is found in SPM package
#17828
Comments
It seems like you have not included the output of |
If anyone wanna dig deeper into this, the issue seems to be here: fastlane/snapshot/lib/snapshot/update.rb Lines 8 to 12 in cbfd272
I don't know where we would search for the |
I see, yes, that looks suspicious. How do I try my fix out? I've tried cloning fastlane and run I was going to try, like:
|
Clone fastlane, make your changes and then update your gemfile such as:
And run Your fix sounds reasonable, let me know how that goes 🙌 If it works out for you, you can open a PR with the proposed fix 🚀 Check our contributing.md for more info 💪 and feel free to tag me to review your PR 🤗 |
If Xcode is configured with 'Relative' path for DerivedData, fastlane would look for outdated 'SnapshotHelper.swift'-files in the checked out SPM-packages. This fix makes sure fastlane doesn't complain about '.swift'-files that exists in the DerivedData-folder.
@rogerluan That fix worked great once I was able to test it 👍 I've created a PR as you can see above! |
If Xcode is configured with 'Relative' path for DerivedData, fastlane would look for outdated 'SnapshotHelper.swift'-files in the checked out SPM-packages. This fix makes sure fastlane doesn't complain about '.swift'-files that exists in the DerivedData-folder. Co-authored-by: Roger Oba <rogerluan.oba@gmail.com>
The pull request #17833 that closed this issue was merged and released as part of fastlane 2.172.0 🚀 |
New Issue Checklist
Issue Description
Fastlane complains about outdated
SnapshotHelper.swift
for files that is fetched from SPM. In my case, it's finding an oldSnapshotHelper.swift
in Stripe's library.I'd believe that stuff from the SPM shouldn't be something that stops the execution of the snapshot-script.
Command executed
fastlane snapshot
Complete output when running fastlane, including the stack trace and command used
Environment
The text was updated successfully, but these errors were encountered: