In daily development, VSCode has become the default editor for many people. Writing front-end, scripts, or even back-end services can almost all be done in the same environment. However, when it comes to iOS development, things become different—Swift can be written, but project building, running, and debugging still rely on a complete toolchain.
Recently, while working on a small feature validation, I attempted to complete the entire process of writing Swift in VSCode, not only writing code but also running it on an iPhone. During this process, I used an iOS development IDE called KuaiXie, which offers an editing experience similar to VSCode while having built-in compilation and debugging capabilities.
Creating a Swift Project in a VSCode-like Environment
After opening KuaiXie IDE, the interface structure is quite similar to common code editors. The left side shows the project directory, and the middle is the editing area.
When creating a project, you can choose different types:
- Swift
- Objective-C
- Flutter
After selecting Swift and entering the project name, the IDE automatically generates the project structure. The directory already includes entry files and basic configurations.
One difference here is that there is no need to manually configure project files. Once the project is created, you can directly open the code files and start writing Swift.
If you are used to writing code in VSCode, the learning curve for this step is relatively low.

Writing Swift in a VSCode-like Editor
During the code editing phase, the experience is essentially writing Swift in an enhanced VSCode environment.
I created a simple page:
- A button
- A text label
Clicking the button updates the text content.
While typing code, the editor provides auto-completion suggestions. For example, when entering UIKit-related classes, it automatically lists available methods. After saving the code, the IDE performs syntax checking.
If you need to use an AI code assistant, you can directly install VSCode plugins, which is consistent with the daily development environment.
For developers accustomed to keyboard shortcuts and plugin systems, this editing experience feels quite natural.
Running Code on an iPhone
After writing the code, the key question becomes: Can it be directly run on a phone?
After connecting the iPhone to the computer, execute the build process.
This process completes:
- Compiling Swift code
- Building the application
- Installing it on the device
Within seconds, the app icon appears on the phone’s desktop. Clicking the icon launches the application.
In the test project, clicking the button successfully updates the text content, indicating that the code has been executed correctly.

Modifying Code and Quickly Validating
During development, code needs constant adjustments.
I added some processing logic to the button click, then saved the file and clicked run again. The IDE recompiles the application and installs the new version.
Opening the phone app shows the modified effects.
The rhythm of this process is quite clear:
Write code → Run → Modify → Run again
The entire process does not require switching tools or additional export steps.
How Compilation and Running Are Completed
In this workflow, no external development environment is used.
KuaiXie IDE has a built-in compilation tool suite. When clicking run, the IDE calls internal tools to complete Swift code compilation and application building.
This is why iOS development can be done in a VSCode-like environment.
When writing Swift, developers do not need to install Xcode separately or manually configure the compilation environment.
Handling Different Projects in the Same Environment
To verify the IDE’s capabilities, I created a Flutter project.
After writing the Flutter page, connecting the device and clicking run, the IDE can complete the build and install the application.
Subsequently, I tested an Objective-C project, which also compiled and ran normally.
In the same environment, you can handle:
- Swift projects
- Objective-C projects
- Flutter projects
For developers who need to switch between different technology stacks, this approach is quite convenient.
Building Installation Packages
After the application development is complete, installation packages need to be generated.
In KuaiXie IDE, you can generate application installation files through the build function. The IDE executes compilation and outputs the installation package.
Build logs are displayed in the output panel; if issues arise, you can view detailed information here.
The generated installation files can be used for test distribution or submission to the app store.

The focus of this test was to verify whether it is feasible to complete Swift development in a VSCode-like environment.
In KuaiXie IDE, the entire workflow is seamless:
Create project → Write Swift → Connect device and run → Modify code → Recompile → Build installation package
The code-writing experience is similar to VSCode, while also having iOS application compilation and running capabilities.
For developers accustomed to VSCode, this development approach offers a different choice.
Reference link: https://kxapp.com/blog/14
- Record of iOS Compilation and Debugging in Non-Xcode Environment
- iOS 开发工具不止 IDE 代码编写与应用安装的环节
- iOS App Development Requires More Than Just Tech Stack: Enhancing Toolchain for Efficiency
- 不依赖 Xcode 的 iOS 编译器,kxapp 中 kxbuild 工具详解
- Getting Started with iOS System Software Development: Don't Just Learn the Language
- iOS开发者工具有哪些?Xcode、Fastlane 与 kxapp 的组合使用
- What are iOS Development Tools? A Tool List Organized by Development Process
- iOS App 开发工具盘点 真正开发任务中的工具
- Getting Started with iOS Development: Building Your First App with Beginner Tools
- iOS App 开发必备的不只有技术栈,补齐工具链更高效
- Can You Do iOS Development Without a Mac? Cross-Device Development Workflow
- iOS系统软件开发入门,不要只学语言
- iOS 开发工具有哪些 按开发流程整理的工具清单
- Are There Xcode Alternatives? The Process of iOS Development in KuaiXie IDE
- 入门 iOS 开发 新手工具开发首个应用
- 不依赖 Mac 也能做 iOS 开发?跨设备开发流程
- VSCode 写 Swift 运行到 iPhone?快蝎 IDE 开发实战体验
- New iOS Development Tool Experience: Complete App Development and Real Device Debugging in FastScorpion IDE
- 有没有Xcode 替代方案?在快蝎 IDE 中完成 iOS 开发的过程
- Boosting Development Efficiency: Using Kxapp for iOS Project Creation, Debugging, and Building
- 提高开发效率的尝试,用快蝎(kxapp)完成 iOS 项目的创建、调试与构建
- 更轻量的 iOS IDE 快蝎(kxapp)完成项目开发与调试,免 Xcode 的 iOS 开发
- 苹果应用开发编译流程,用快蝎(kxapp)工具完成 iOS 构建与调试
- iOS 应用打包流程,不用 Xcode 生成安装包
- 不安装 Xcode 也能写 iOS 应用?一次免 Xcode 开发流程的实际记录
- iOS 开发编译与真机调试流程的新思路,用快蝎 IDE 构建应用
- 免 Xcode 的 iOS 开发新选择?聊聊一款更轻量的 iOS 开发 IDE kxapp 快蝎
- KXApp — 让编译更简单
- KXApp — Simplifying Compilation