How do I create a run configuration for an iOS app...
# compose-ios
i
How do I create a run configuration for an iOS application with the new KMP plugin for Intellij? Using the older plugin a month or two ago, it was pretty easy, but the new plugin doesn't work with the same run configurations, and I can't seem to get the "XCode Application" run configuration working (the "target" and "configuration" drop-downs don't have anything in them; screenshot in thread)
Screenshot 2025-06-18 at 8.54.21 AM.png
x
Now the new plugin will create run configuration automatically. So you could try re-import the project in IDEA/AS.
i
Re-importing doesn't work 😞
x
Is it open-source? Or try to clone to another folder and open&import the project.
i
I've figured it out
you need an
xcode.xml
file in your
.idea
folder
Here's what I had to add to get it working:
Copy code
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="XcodeMetaData" PROJECT_DIR="$PROJECT_DIR$/tests/application/src/iosMain/xcode/EnroTestApplication/EnroTestApplication" PROJECT_FILE="$PROJECT_DIR$/tests/application/src/iosMain/xcode/EnroTestApplication/EnroTestApplication.xcodeproj" />
</project>
As a side note, I can't figure out how to get the
.idea
folder to actually show up in Intellij 2025.1.2, which made this process of figuring out the differences and making the changes wildly frustrating
plus1 1
Ok, it also looks like there is some kind of other hidden set up relating to IDE configuration. After I added a new iOS module to my project, and then deleted it, my exsiting iOS app project started getting picked up by the plugin.
K 1