I’m trying to run a game on iOS device (iPhone 5s) and can’t do that. I’ve followed the instructions (created provisioning profile, signed iOS app and downloaded it from the Dashboard). When I start dmengine on the device, I see welcome screen, I can see my device in the list of targets in Defold, the game builds but when it’s time to run it on the device, device screen goes black and after several seconds it crashes. Here’s what I get in the Defold console:
INFO:ENGINE: Defold Engine 1.2.110 (de8a2ae)
INFO:ENGINE: Loading data from: http://192.168.1.40:8080/build/default
INFO:ENGINE: Initialised sound device 'default'
ERROR:DLIB: No connectivity host set, required on iOS.
DEBUG:SCRIPT: Nothing to send
If I bundle the app and upload .ipa file with XCode, the game works fine. BTW, the game uses native extension (DefUnityAds).
Thanks for the answer! That means I can’t quickly run and debug my game if I use native extensions. Ok, I will try to temporarily disable them because I need quick debug cycle (I’m fixing game UI issues on iOS).
I wonder if it’s possible to include native extensions to dmengine (I’m totally fine with re-signing and re-uploading dmengine every time I add a native extension) so we can quickly test our games on the devices? Bundling after every little change is a big waste of time.
@sicher I’m not sure if I correctly understood the workaround you suggest: does that mean that I can upload .ipa and then use Cmd+B to run the game with all updates in the code from Defold Editor?
Well, first of all, I’ll try to run another project on a device which doesn’t use Native Extensions. Then I’ll try to disable DefUnityAds in this project and see if it works. I’ll post the results here. Maybe it’s not Defold but the extension-related problem.
Okay, I’ve tried to run another game which doesn’t use DefUnityAds and everything worked totally fine.
So, it seems it’s the problem with DefUnityAds or, as Alexey said, it’s a problem with Unity Ads.
@AGulev Thank you! Though, as I said, it works fine if I install an IPA (but I will test more, of course). I experience problem only when I try to run from the editor (tried with both signed dmengine and IPA).
BTW, I’ve finally managed to run the game directly from the Editor 1 and even with DefUnityAds working fine on iOS. I don’t know what happened, it just started to work.