Debug iOS from xcode.
Ok, so I'm trying to debug a running on iPad application with xcode (because of crash on device only). This is what I did:
Now I can find the xcode project file on iMac in /UE4/Builds/SKU145/C/GameName/Binaries/UE4_FromPC.xcodeproj
I try to run a game using "GameName - iOS" scheme, but right after the start the game breaks at:
The interesting part is that when I deploy a game using UnrealFrontend using Debug scheme the error is not occurring anymore. But then - project seems not to update after I make any changes in code.
I was trying to build an editor on iMac directly, but I had another problem (with Moga), but this is a material for another topic. But, will I be able to debug game on device when I have a editor on iMac?
Can I receive any guide to how debug running on iDevice application?
asked Nov 25 '14 at 03:59 PM in Using UE4
Ok, after lots of tears and swears I found a solution that works for me.
The main problem is that on iMac there is only code compilation, not packaging. So on iMac in /UE4/Builds/SKU145/C/GameName/Binaries/IOS/Payload/MyGame.app there is a game without content. The content is cooked on PC.
On PC: go to the MyGame/Binareis/IOS and open MyGame-IOS-debug.ipa (it's an archive, can be opened using 7zip). Then, go to the Payload inside this archive and get MyGame.app and copy it to the iMac on the place of old MyGame.app. Thanks to that we will have a bundle with content.
Other settings (packaging, building) are like in the question.
For safety - don't deploy a game using PC with editor, deploy it using xcode. If needed, delete the app from device first.
Now I have to write some fancy script that will copy the payload to the good place. Doing this by hand might be annoying.
Ok, here is the batch script.
It can be run with parameters:
The script should be in the Game Directory. It requires 7zip and pscp.
I know it should be written in Unreal Build Tool, not batch file, but I totally don't know what's going on in UBT :(
Anyway, I don't know if it should be considered as bug.
Follow this question
Once you sign in you will be able to subscribe for any updates here