Scribe-iOS
Scribe-iOS copied to clipboard
Update pr_ci.yaml
#504 Part of Version needs to be converted to an external link to directs towards the releases on GitHub
Updated the pr_ci.yaml to ensure that the Swift environment is installed and ready for running tests or building Swift-based applications as part of the CI process.
Thank you for the pull request!
The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)
If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and iOS rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you!
Maintainer checklist
-
[x] The commit messages for the remote branch should be checked to make sure the contributor's email is set up correctly so that they receive credit for their contribution
- The contributor's name and icon in remote commits should be the same as what appears in the PR
- If there's a mismatch, the contributor needs to make sure that the email they use for GitHub matches what they have for
git config user.emailin their local Scribe-iOS repo
-
[ ] The linting and formatting workflows within the PR checks do not indicate new errors in the files changed
-
[ ] The CI unit test workflows within the PR checks do not indicate new errors in the files changed
-
[x] The CHANGELOG has been updated with a description of the changes for the upcoming release and the corresponding issue (if necessary)
@andrewtavis, I think our Scribe is using GRDB beta which has swift 6.0. And Github Action flow has yet to launch support for 6.0.0. Can you please try to make use of older GRDB package?
Yes I think this makes sense. So we need to set a specific version of GRDB :)
@Mehul721, in the same PR can you please downgrade the GRDB version and push those changes? I think the pr_ci will work.
Steps:
- Go to project >
Scribe - Then go to
Package Dependencies - Only for the GRDB.swift, change the
branchtoUpto next major version - Then put the lower limit to
6.29.3 - Refer to image if required:
Yes I think this makes sense. So we need to set a specific version of GRDB :)
Provided the steps, so that he can apply those.
Thanks for the support here, @fabulouiOS-monk!
@Mehul721, and you can remove the changes made in pr_ci.yaml file.
@Mehul721, in the same PR can you please downgrade the GRDB version and push those changes? I think the pr_ci will work.
Steps:
- Go to project >
Scribe- Then go to
Package Dependencies- Only for the GRDB.swift, change the
branchtoUpto next major version- Then put the lower limit to
6.29.3- Refer to image if required:
![]()
Okay sure I'll do that.Thanks a lot :)
@Mehul721, I see you are using Xcode 16. right??
If yes, then that's an issue, since in Swift 6.0.0, they have launched a major change regarding concurrency and other stuff, so I guess you need to solve them manually by fixing those.
also can you please provide me with SS of the errors in any of the files?
@andrewtavis, what is your opinion on this?
If @Mehul721, make those changes and pushes, I don't think others are having Xcode 16 (using Swift 6.0). And for others, it may show to remove those changes.
NOTE: Swift 6.0 is making everything concurrency-safe, hence Mehul is getting those errors.
I think we can safely update and ask that the community does so. I'm not aware of anyone who would have a problem with this.
GRDB 6 can indeed create warnings or errors in Xcode 16, if the project opts in for concurrency checking. See https://github.com/groue/GRDB.swift/discussions/1509 for workarounds until you upgrade to GRDB 7.
@Mehul721, I see you are using Xcode 16. right??
If yes, then that's an issue, since in Swift 6.0.0, they have launched a major change regarding concurrency and other stuff, so I guess you need to solve them manually by fixing those.
also can you please provide me with SS of the errors in any of the files?
Yes I am using Xcode 16.The thing with these errors is that they vanish once I enter the files to specifically look at them.But they keep recurring. Also I have found out two resources that might be helpful.One of them is:-https://developer.apple.com/videos/play/wwdc2024/10169/ Also there is:- https://www.swift.org/migration/documentation/swift-6-concurrency-migration-guide/dataracesafety
Came across "data race safety" a number of times.The issue precisely is related to concurrency.
Thanks so much for the response here, @groue! As always so appreciative of and impressed by your support to the GRDB community.
Maybe the thing to do here is upgrade to GRDB 7. We don't have too many queries in the project, and my hope would be that they're fairly standard. Aside from this, we could update this PR with the changes suggested in https://github.com/groue/GRDB.swift/discussions/1509 as workarounds :)
Closing this one down as the changes here are not needed. GRDB was set to 6.0..<7.0 in #505. This ran in Xcode 16 with no errors. We'll update GRDB soon 😊 Thanks for the efforts here, @Mehul721, and also for the collaboration, all!