2.5x Acceleration: Yandex Unveils LLM-Based Solution for Rapid iOS Code Migration to Swift

The solution has been tested on the Yandex Browser codebase.

The Yandex team has introduced an open LLM-based solution that accelerates iOS code migration to Swift. The tool helps automate the transfer of projects from Objective-C to Swift. This solution allows developers to focus on quality assurance and refactoring, rather than routine code rewriting.

Unlike standard converters, the new system considers project context and architecture, using four specialized prompts. The first determines the migration order and verifies the result, the second adapts the code to Swift best practices, the third performs an automatic checklist review, and the fourth cleans the code of outdated annotations. Yandex stated:

To verify the universality of the approach, the team applied it to a third-party project — the Wikipedia app for iOS. One of the packages responsible for formatting wiki markup was successfully migrated, and a pull request was opened in the project's repository. The experiment demonstrated that the approach is not tied to the specifics of the Yandex monorepository.

To implement the solution in your project, you will need to fill out a configuration template, specifying the architecture, build system, code standards, and test structure.

The solution supports integration with popular development tools and includes a function for generating integration tests to maintain code quality. All necessary prompts, scripts, and templates are available on GitHub and SoucreCraft.