-
Notifications
You must be signed in to change notification settings - Fork 30
[WIP] Attempt at porting to Swift using Claude Code #2110
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
base: swift-migration-experiments-groundwork
Are you sure you want to change the base?
[WIP] Attempt at porting to Swift using Claude Code #2110
Conversation
have made a few changes to PRD, and will be continuing with that
Claude just did this of its own volition, but it makes sense, so let's codify.
I'll probably get it to try the file again though
This is after it seemed to get it wrong for ARTAuth
I asked it to again update the PRD
And ask it to fix the PRD
I don't know if there are other header-only files that I missed
TODO revisit some of the runtime stuff that's been done here
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ec6998a to
99d7df3
Compare
Based on top of #2105.
Summary
This was an experiment at getting Claude Code to port this repo to Swift. I had thought that this might be a simple, low-risk way of starting to modernise this SDK. But it turned out not to be as simple as I had hoped. A lot of the issues come from Swift being a lot stricter about nullability than Objective-C. And then Claude sometimes tries to fix this itself but without enough context to really be able to reason about what may or may not be nullable.
Current state:
?? ""unwrapValueWithAmbiguousObjectiveCNullabilityfunction that I told it to useI have a bunch of further notes about this that I wrote along the way, but which I don't think worth writing up right now:
ably-cocoa Swift migration, Sep 2025.md
Conclusion
I don't think that this approach has yet proven itself to be viable. I originally proposed it because I thought it would be quick and low-risk compared to trying a rewrite in Swift from scratch. I am not as convinced now. I think that if we were to try and get this migration approach to work we might end up sinking a load of time into it and ending up with something that we have little confidence that it works, which means it's no longer low-risk.
This was 4 days of work and I think we should probably cut our losses on this approach for now and investigate alternatives.