Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ad Hoc deployment fails when shipping Default.png images

I'm an experiencing an issue where I can't install an Ad Hoc version of my application via TestFlight. The application downloads, but at the installation step it shows something like "YourApp can't be installed", with the following messages appearing on the console:

Sep 17 16:08:24 unknown installd[4767] <Error>: 00381000 verify_signer_identity: Could not copy validate signature: -402620393
Sep 17 16:08:24 unknown installd[4767] <Error>: 00381000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.2wYy1J/foo_extracted/Payload/PocketCASbeta.app
Sep 17 16:08:24 unknown com.apple.itunesstored[4764] <Notice>: MobileInstallationInstall: failed with -1
Sep 17 16:08:24 unknown installd[4767] <Error>: 00381000 install_application: Could not preflight application install
Sep 17 16:08:24 unknown installd[4767] <Error>: 00381000 handle_install: API failed
Sep 17 16:08:24 unknown installd[4767] <Error>: 00381000 send_message: failed to send mach message of 71 bytes: 10000003
Sep 17 16:08:24 unknown installd[4767] <Error>: 00381000 send_error: Could not send error response to client

codesign --verify doesn't return any errors, and I have double-checked that I'm using the correct Ad Hoc provisioning profile (codesign --display -vvvv confirms this).

However, as soon as I remove all the Default.png images from the application, the install works and the application can be run afterwards. The IPA has a size of about 10 MB without and 15 MB with all Default.png images.

Any ideas?

like image 293
MrMage Avatar asked Nov 12 '22 22:11

MrMage


1 Answers

Have you tried installing the IPA direct to your device via Xcode?

Connect device.

Open Xcode Organizer / Devices Tab / Select your device / Applications.

Click the + (add) button at the bottom left, select your app.

If this install fails as well, I suspect there's something up with your Default.png image. If you are scripting image conversion, it's worth mentioning that I've had lots of issues in the past using the sips command-line utility creating png images that Apple doesn't like, so I've stopped using that. I now use ImageMagick instead and have not had any trouble since.

like image 177
Ben Clayton Avatar answered Nov 15 '22 12:11

Ben Clayton