Unable to locate DeviceSupport directory with suffix 'DeveloperDiskImage.dmg'

ios-deploy[34874:685742] [ !! ] Unable to locate DeviceSupport directory with suffix ‘DeveloperDiskImage.dmg’. This probably means you don’t have Xcode installed, you will need to launch the app manually and logging output will not be shown!

Getting this after lime test ios. It builds successfully but I’m not able to debug in the command line. I’ve tried installing Xcode from the App Store and from Apple’s Developer website.

Hi! I can confirm I am also getting this. I tried stripping it back to the most basic project I could - here are the steps I took:

  • Installed everything from scratch (haxe/lime)
  • connected my iPad via USB, made sure it is recognised and set up in xcode.
  • Created a lime sample project with “lime create SimpleImage”
  • Added <config:ios team-id="********"/> to the project.xml file
  • tried: “lime test ios -verbose”
  • it compiles and copies to the device, but then gives this error:

[100%] Installed package /Users/greg/Goose/SimpleImage/Export/ios/build/Release-iphoneos/SimpleImage.app
------ Debug phase ------
Starting debug of 00008027-001E28240E84002E (J320AP, iPad Pro 3G (12.9"), iphoneos, arm64e) a.k.a. ‘Greg’s iPad (2)’ connected through USB…
2024-11-27 12:51:08.843 ios-deploy[3028:2568685] [ !! ] Unable to locate DeviceSupport directory with suffix ‘DeveloperDiskImage.dmg’. This probably means you don’t have Xcode installed, you will need to launch the app manually and logging output will not be shown!

It would be really nice to compile directly from the command line - if anyone knows why this is happening and how to fix please let me know!

BTW, it does seem that building through xcode works fine:
lime test ios -xcode

If you run that (with -xcode) it will launch xcode with your project loaded. From here you can select the target device at the top and run and it should work ok. This is how we’ve always done it in the past, but it would be great to not have to see xcode as it would make it much more consistent with the other platforms.

Thanks,
Greg

Unfortunately, the ios-deploy tool that we use to install the app on iOS devices hasn’t been updated to work with newer versions of Xcode. The error about DeveloperDiskImage.dmg comes from ios-deploy. This issue has also affected other cross-platform dev tools, like Flutter.

Related issue for ios-deploy:

Hmm… I just noticed this comment linked from there, which looks like it might suggest an alternative solution:

1 Like

I just committed a fix that should allow lime test ios to work with Xcode 16 or newer. It will be included in the next Lime update. Until then, it’s available from git (and rebuild tools is required).

Hi, I just pulled the most recent lime and can confirm that it works, thanks for fixing that! It’s really nice to be able to test without needing to go into xcode.

Greg

1 Like