days since this article was written, please be aware of its timeliness
This article is an expanded version by the original author. The original post can be found at:
I’m adding supplementary notes here because when I followed this tutorial, I encountered some pitfalls due to my lack of familiarity with Xcode and iOS development. Hence, I’m documenting these points for reference.
This article serves as a supplement to the original post. Please refer to the original first.
Supplement to “Installing the Swift Plugin and CodeLLDB Plugin”:
The Swift plugin mentioned here is outdated. You should use the latest plugin instead. Search for Swift Programming Language in the plugin marketplace.
Supplement to Step 2 of “Setting Up Hot Reloading”:
Open the corresponding Target settings in your project -> Build Settings -> Search for **Other Linker Flags**, then add **-Xlinker** and **-interposable** separately.
Note that both must be added simultaneously, i.e., copy -Xlinker -interposable and paste it as shown in the image below:

Source Kit File Not Found Error After Adding New Files:
You’ll need to rerun the command mentioned in the original post using Xcode-Build-Server:
1 | |
Issue with SwiftUI Previews Not Updating in Real Time During Debugging:
Certain ViewModifier additions or modifications may indeed fail to update in real time, but changes like modifying a String in Text generally work fine. I’m not entirely sure why.
-
Previous
App Development Journey (Part 1): The Marvelous Mystery of Swift -
Next
Migration from Jekyll to Hexo: Issue Log

I often wish that when facing some key decisions in life, someone could tell me the best course of action so that I would not waste my precious time. Putting myself in others' shoes, I therefore write blogs often, hoping to record in this tiny corner of the vast Internet the once-in-a-lifetime experiences that matter to me, and to help those who seek help.