-
-
Notifications
You must be signed in to change notification settings - Fork 101
Add a tool to migrate an xcodeproj to Skip #638
Copy link
Copy link
Open
Labels
help wantedExtra attention is neededExtra attention is neededprojectIssues involving the structure of a Skip project, including Xcode, Gradle, Studio, fastlane and CIIssues involving the structure of a Skip project, including Xcode, Gradle, Studio, fastlane and CIsetupInstallation and setup issues, including Homebrew/Java installation and skip checkup issuesInstallation and setup issues, including Homebrew/Java installation and skip checkup issues
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededprojectIssues involving the structure of a Skip project, including Xcode, Gradle, Studio, fastlane and CIIssues involving the structure of a Skip project, including Xcode, Gradle, Studio, fastlane and CIsetupInstallation and setup issues, including Homebrew/Java installation and skip checkup issuesInstallation and setup issues, including Homebrew/Java installation and skip checkup issues
People keep asking about this, and the documentation around this https://skip.dev/docs/project-types/#existing_development basically says "start from scratch, copying over code into a fresh project created with
skip initorskip create."But I can dimly imagine a tool that could at least take a standard Xcode-generated SwiftUI xcodeproj (with no xcworkspace), convert it into an xcodeproj that depends on a SwiftPM module, moving the xcodeproj into a Darwin folder, and generate an Android directory for it.
It could perhaps run in phases. Perhaps the first phase would just SwiftPM-ify the whole thing, and then stop and let the user verify that their iOS app still works as expected. Then, maybe a second command could skip-ify one SwiftPM module, ensuring that it builds on Android.
(Some day, as part of an integration test, we could search Github for open-source pure SwiftUI apps and try to automatically migrate as many of them as we can.)
This would be a lot of work, but I think it could really open doors for Skip.