Hello Unity Community,
I am currently working on a team making an iPhone game and we are currently able to run and test games outside of Unity without any issues what so ever. Our issues lie within trying to launch our game to our iPod touch via Unity. Here is the error we are getting.
Your mobile device has encountered an unexpected error (0xE8000001)
Try disconnecting and powering off the device; then power the device on and reconnect it.
We have disconnected the device and still get the same error. We are running sdk version 2.2, OS version 2.2 and like I said we are able to build xcode projects outside of unity and they deploy fine on the test device that we have. I have also tried to install Unity Remote on the device as well, but when I do that I get an error saying that the application is already installed on the device. So I am in need of some pretty desperate help. Thanks so much, I will continue to try and diagnose this issue further and use this forum as a resource. Thanks again.
you didn’t say whether you did actually do a full power off of the device, you just said you disconnected it? did you hold down the power button until the “power off” red slider appeared?
if yes, the other thing that helped me was to do a full restore onto the iPod from the machine you are building on. I had the same version on an iPod which was syncing wiht my iMac, but until I had done a full restore from the machine with Unity/xCode, I got the error you’re getting.
Thank you for the reply. I am about to try what you recommended, however I wanted to update/edit my issue.
As of about 5 minutes ago I was able to install Unity Remote successfully and everything works fine with that program. YAY. However I still get the Error I posted above about turning off and resetting the device. I have turned off and reset it, just as it asked and rebuilt, but still get the error. I’m off to do a reset on the device and hopefully that should do the trick. Whew…what a day.
EDIT:
I just finished restoring the device. Xcode recognized it as a new device. So I chose to use it for development. I made sure that the provisioning profile was correctly placed in the device, which it is. And I opened Unity and my project, then clicked build and run. I still get an error but this time it is a different one:
Your mobile device has encountered an unexpected error (0xE800003A)
ApplicationVerificationFailed
I’m at a loss for words as this development process has been a real hassle. I’m pretty sure that I do not need to use unity remote to get my app running for testing purposes on my device, but if anyone can comment on any of this mess please do so. Thanks again. Will post back with any updates that I get.
Before you waste an hour on a restore, find out what the actual error is in the console. In XCode, open the organizer window, select the iPhone, and go to the “Console” tab. Reload the console and you should see some more detailed messages explaining what it didn’t like.
Here is what I am getting from the console on the last build. I notice that it mentions something about the provisioning profile. This is odd though because the provisioning profile on the device is fine. I’m going to go out on a limb here and ask a stupid question but, can we launch our apps developed through Unity on an iPod Touch? Is this why we can’t launch, does it have to be an iPhone?
Wed Dec 10 14:01:12 unknown afcd[152] : user mobile has uid 501
Wed Dec 10 14:01:12 unknown afcd[152] : mode is 0x41e8
Wed Dec 10 14:01:15 unknown mobile_installation_proxy[154] : install_embedded_profile: Skipping the installation of the embedded profile
Wed Dec 10 14:01:15 unknown securityd[148] : mobile_installat[154] SecItemCopyMatching: missing entitlement
Wed Dec 10 14:01:19 unknown configd[21] : WiFi: Display on. Adjusting scan intervals for non agressive scanning.
Wed Dec 10 14:01:19 unknown configd[21] :
Wed Dec 10 14:01:19 unknown configd[21] : WiFi: Already connected to konneckt.
Wed Dec 10 14:01:19 unknown configd[21] : WiFi: Disassociation timer disabled because we are connected to a power source
Wed Dec 10 14:01:20 unknown securityd[148] : mobile_installat[154] SecItemCopyMatching: missing entitlement
Wed Dec 10 14:01:21 unknown securityd[148] : mobile_installat[154] SecItemCopyMatching: missing entitlement
Wed Dec 10 14:01:21 unknown mobile_installation_proxy[154] : entitlement ‘application-identifier’ has value not permitted by a provisioning profile
Wed Dec 10 14:01:21 unknown mobile_installation_proxy[154] : verify_executable: Could not validate signature: e8008016
Wed Dec 10 14:01:21 unknown mobile_installation_proxy[154] : preflight_application_install: Could not verify /var/tmp/install_staging.TpwP44/Test01.app/Test01
Wed Dec 10 14:01:21 unknown mobile_installation_proxy[154] : install_application: Could not preflight application install
Wed Dec 10 14:01:21 unknown mobile_installation_proxy[154] : handle_install: Installation failed
Wed Dec 10 14:01:28 unknown configd[21] : WiFi: Display off. Adjusting scan intervals for dim screen.
Wed Dec 10 14:01:28 unknown configd[21] :
Wed Dec 10 14:01:28 unknown configd[21] : WiFi: Disassociation timer disabled because we are connected to a power source
Sounds like your app (or provisioning profile) isn’t properly set up. That’s all. There’s probably a dozen threads on this topic up here, but the bottom line is: set the app ID correctly in Unity, make sure it’s in the Build settings in XCode, and make sure your provisioning profile uses a wildcard app ID (as detailed in Apple’s docs).
Looking at the above console log it mentions that the identifier was incorrect. I’ll be darned because it was wrong. What I had to do was go to the target in the xcode project window and clicked on info (as others have mentioned in the forums), then properties and manually changed the identifier to what I had put as the App ID when setting up everything on the DevPortal. Everything launched fine and I just wanted to thank everyone for the help.
If for some reason I have anymore issues I’ll let you all know. Thanks again.
The Apple generated numbers from the Provisioning Profile break the verification process.
If you use that correct naming convention for the IPhone Bundle Identifier in Unity Project Settings/Player Settings, it will be correct for the project in Xcode.