iosxcodecocoapodsad-hoc-distributiongoogle-mlkit

iOS Ad-hoc Distribution with Google MLKit cocoapods


I have a problem with using Google MLKit framework inside my iOS app. I use Ad-hoc OTA distribution to test the app on selected tester devices. It worked great until I added Google MLKit through cocoapods and I'm not really sure what is the reason. Everything compiles properly, Archive is generated without errors but when testers want to download the app it crashes during the "Installing" stage and shows "Unable to install..." alert.

Few things that I tried already :

The weird thing is that it downloads properly from Ad-hoc OTA on the device that I use to test it directly from Xcode (but I delete the app before downloading it from the server) but doesn't work on any other device.


Solution

  • To find the specific error details:

    Theres a mac app called "console" from apple, can't remember if its installed by default or not. Get one of the devices it doesn't work on, connect it to your mac with console open. Try to do the install and the detailed error should show up inside console. If its working on your device and not someone else's, its some kind of signing issue, like you have a cert installed on your phone that others don't.

    Fixing the provisioning issue:

    Go to your project, select the main target under the general tab. Scroll down to "frameworks, Libraries, and Embedded Content". Make sure the cocoapods library called "Pods_|project-name|.framework" is set to "Do Not Embed"