Configure Individual Developer Setup for Injection
mainTo enable hot reloading on a local machine, every developer must perform these steps once:
- Linker Flags: Add
-Xlinker -interposable(on separate lines, no quotes) to the Other Linker Flags of all targets in your project for the Debug configuration. - Build Settings: In newer Xcode versions, add a User-Defined Setting
EMIT_FRONTEND_COMMAND_LINESand set it toYESin your project's Debug build settings. - InjectionIII App:
- Download the latest version of Xcode Injection from its GitHub Page.
- Unpack and place it in
/Applications. - Ensure your Xcode is located at
/Applications/Xcode.app. - Run the application and select your project's
.xcworkspacefile.
- Verify: Check the console for a message like
💉 InjectionIII connected ...and💉 Watching files under ....