Hi! I’m just getting started with Defold, so this might be a silly question, but I can’t seem to find anything about it on the forums.
I’ve been following along with the instructions for setting up Defold for iOS development, and everything seems to be working fine… except when I attempt to bundle my project it fails to launch the app on the phone I have connected. Gives this error:
“Defold[2827:64774] [ !! ] 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!
Failed to launch the app”
Google results seem to indicate there was some kind of change to how Xcode works with ios-deploy past version 14?
I’m currently running Xcode v16.2, and OS version Sequoia 15.3.1, maybe that’s the issue, but I figured I’d ask here in case there’s an easy fix!
I don’t think you need XCode unless you wish to debug the executable, then you need to install XCode.
Also, I believe I read somewhere that ios-deploy isn’t the preferred way to do it nowadays, but XCode has some new way to do it (which I haven’t tried myself yet).
But personally I used ios-deploy to install an app last week, so that should work at least.
@HHH A workaround for if you need to be able to view logs while connected and debugging, is to use the Console.app on Mac. Click on your connected device and filter by process and log messages. This will show you all kinds of logs and messages that are happening on your device so you will need to filter it. In the search you can do it like process:AppName if the name of my app was “App Name” (it removes the space) and message:Log for the log. I noticed that anywhere I use print() the log message is prefixed with DEBUG:SCRIPT: so you can use this as a filter as such message:DEBUG:SCRIPT:.
You can also do this with terminal apps like: idevicesyslog