A Pilot Study on LLM-Based Agentic Translation from Android to iOS: Pitfalls and Insights

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zeng, Zhili, Shahandashti, Kimya Khakzad, Belle, Alvine Boaye, Wang, Song, Ming, Zhen, Jiang
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918101181792256
author Zeng, Zhili
Shahandashti, Kimya Khakzad
Belle, Alvine Boaye
Wang, Song
Ming, Zhen
Jiang
author_facet Zeng, Zhili
Shahandashti, Kimya Khakzad
Belle, Alvine Boaye
Wang, Song
Ming, Zhen
Jiang
contents The rapid advancement of mobile applications has led to a significant demand for cross-platform compatibility, particularly between the Android and iOS platforms. Traditional approaches to mobile application translation often rely on manual intervention or rule-based systems, which are labor-intensive and time-consuming. While recent advancements in machine learning have introduced automated methods, they often lack contextual understanding and adaptability, resulting in suboptimal translations. Large Language Models (LLMs) were recently leveraged to enhance code translation at different granularities, including the method, class, and repository levels. Researchers have investigated common errors, limitations, and potential strategies to improve these tasks. However, LLM-based application translation across different platforms, such as migrating mobile applications between Android and iOS or adapting software across diverse frameworks, remains underexplored. Understanding the performance, strengths, and limitations of LLMs in cross-platform application translation is critical for advancing software engineering automation. This study aims to fill this gap by evaluating LLM-based agentic approaches for mobile application translation, identifying key failure points, and proposing guidelines to improve translation performance. We developed a chain of agents that account for dependencies, specifications, program structure, and program control flow when translating applications from Android to iOS. To evaluate the performance, we manually examined the translated code for syntactic correctness, semantic accuracy, and functional completeness. For translation failures, we further conducted a detailed root cause analysis to understand the underlying limitations of the agentic translation process and identify opportunities for improvement.
format Preprint
id arxiv_https___arxiv_org_abs_2507_16037
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Pilot Study on LLM-Based Agentic Translation from Android to iOS: Pitfalls and Insights
Zeng, Zhili
Shahandashti, Kimya Khakzad
Belle, Alvine Boaye
Wang, Song
Ming, Zhen
Jiang
Software Engineering
The rapid advancement of mobile applications has led to a significant demand for cross-platform compatibility, particularly between the Android and iOS platforms. Traditional approaches to mobile application translation often rely on manual intervention or rule-based systems, which are labor-intensive and time-consuming. While recent advancements in machine learning have introduced automated methods, they often lack contextual understanding and adaptability, resulting in suboptimal translations. Large Language Models (LLMs) were recently leveraged to enhance code translation at different granularities, including the method, class, and repository levels. Researchers have investigated common errors, limitations, and potential strategies to improve these tasks. However, LLM-based application translation across different platforms, such as migrating mobile applications between Android and iOS or adapting software across diverse frameworks, remains underexplored. Understanding the performance, strengths, and limitations of LLMs in cross-platform application translation is critical for advancing software engineering automation. This study aims to fill this gap by evaluating LLM-based agentic approaches for mobile application translation, identifying key failure points, and proposing guidelines to improve translation performance. We developed a chain of agents that account for dependencies, specifications, program structure, and program control flow when translating applications from Android to iOS. To evaluate the performance, we manually examined the translated code for syntactic correctness, semantic accuracy, and functional completeness. For translation failures, we further conducted a detailed root cause analysis to understand the underlying limitations of the agentic translation process and identify opportunities for improvement.
title A Pilot Study on LLM-Based Agentic Translation from Android to iOS: Pitfalls and Insights
topic Software Engineering
url https://arxiv.org/abs/2507.16037