I'm using a bash script on Mac to install & run my pdx. I'm using Mac SDK 2.5.0 wit device firmware 2.5.0. (earlier versions also affected)
After automatically rebooting into data disk mode, transferring files and rebooting again, I wait for the usb device to show up and then execute
pdutil /dev/cu.usbmodemPDU1_Y0<my serial> run "/Games/wheelsprung.pdx"
Here is a link to the full script:
This works and the game runs fine, but the Device Info panel in the sim shows a spotty connection to the device and the console window is spammed with cpu task percentages.
Note also that in the screenshot the cpu usages history is expected to show a constant historical usage rather than the spikes which are indicative of a bad connection.
Only when quitting my game, going to the launcher and then executing the exact same command again, a stable connection is achieved.
On thing I tried is inserting a few seconds of sleep before the pdutil run command, but that unfortunately didn't help
When using simulator to upload my game to device, this doesn't happen. The downsize of that method is that it's much slower and requires manual action
You can't have two things competing for the PD serial port, it won't work. So if you're using pdutil you need to first quit the Sim or things will go sideways.
It would be nice to have the sim recover from this, considering pdutil is only active for a split second, but I do understand that this would be very low on your priority list.
So instead I'll add a step to the script to kill the sim before using pdutil, thanks