Signing IPA for Ad Hoc distribution?

149 views
Skip to first unread message

Greg Allensworth

unread,
Apr 10, 2014, 3:23:01 PM4/10/14
to phon...@googlegroups.com
Hey all. I'm having a devil of a time, trying to generate an IPA for Ad
Hoc distribution to beta testers.

Scenario and bug:

I have the Cordova app running A-OK on my cable-attached iPad, via
"cordova run ios --device" I can also download and install the IPA over
the air on that very same iPad used for development. So my manifest file
and hyperlink used for OTA are okay.

On the beta tester's iPhone 4, the application will download but not
install. On its console, the errors are "could not install embedded
profile" and "MISValidateSignatureAndCopyInfo failed" which indicate
something with the code signing.

I've tried about 40 combinations of signing identity and provisioning
profile, and no luck. Maybe someone could point out where I'm going wrong?

- In Xcode, I use Preferences/Accounts and see that it has my
Distribution PP named "Ad Hoc Beta", and the company Distribution
Certificate. I select these in the Code Signing settings, and check that
Release is configured to use the Distribution identity and Ad Hoc Beta
is selected as the PP.

- I build for iOS with "cordova build ios --release --device" and
ultimately get a .app directory.

- I verify the signature on the .app directory:

codesign -d -vvvv platforms/ios/build/device/MyApp.app
It shows the right signature (iPhone Distribution: GreenInfo Network).
Identifier (org.greeninfo.myapp)

- I check the provisioning profile in
platforms/ios/build/device/MyApp.app/embedded.mobileprovision and see that:
* the wildcard identifier is being used
* it was signed a few minutes ago and expires in about 6 months
* the list of ProvisionedDevices definitely includes the UDID of my beta
tester's iPhone 4

The app does not use any additional capabilities nor entitlements.


So, does anybody have some ideas on how I continue troubleshooting? I
can share the content of the mobileprovision file, for example...

--
Greg Allensworth, Senior Web GIS Developer
BS A+ Network+ Security+ Linux+ Server+
GreenInfo Network - Information and Mapping in the Public Interest
564 Market Street, Suite 510 San Francisco CA 94104
PH: 541-223-7636 email: gre...@greeninfo.org
Web: www.GreenInfo.org www.MapsPortal.org

Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org

Greg Allensworth

unread,
Apr 10, 2014, 3:55:44 PM4/10/14
to phon...@googlegroups.com
Okay, I figured it out. After two days...

The UDID reported on the phone was inaccurate.
Apparently the Get Your UDID apps no longer work, and report incorrect
UDIDs.

Fetching the UDID via iTunes gave us the correct UDID, and had his app
installed OTA about 15 minutes later.


In the process, I have learned a lot about the code signing process,
I'll give it that!

jcesarmobile

unread,
Apr 11, 2014, 3:12:00 AM4/11/14
to phon...@googlegroups.com
I think everybody should use testflight for testing (apple bought it last month), you get the tester UDID when the tester registers his device, and it's easier to track the app installations by the testerts too

You can get the UDID without itunes on this web http://get.udid.io/

Greg Allensworth

unread,
Apr 11, 2014, 10:56:09 AM4/11/14
to phon...@googlegroups.com
On 4/11/2014 12:12 AM, jcesarmobile wrote:
> I think everybody should use testflight for testing (apple bought it
> last month), you get the tester UDID when the tester registers his
> device, and it's easier to track the app installations by the testerts too

Thanks for the tip. I'll check it out.


> You can get the UDID without itunes on this web http://get.udid.io/

This is the app that gave us the wrong number, one starting with FFFFFF.
Apparently that's a new privacy measure in iOS 7 ?

jcesarmobile

unread,
Apr 11, 2014, 6:11:40 PM4/11/14
to phon...@googlegroups.com
Really? I get mine right and I'm using iOS 7

BTW, that's not an app, it's a web that installs a certificate to check the UDID, testflight uses this too to check the UDID, the wrong UDID is returned if you check it with native code on a native app.

Greg Allensworth

unread,
Apr 11, 2014, 6:31:41 PM4/11/14
to phon...@googlegroups.com
Interesting. I'll touch base with my beta tester, and see if I can get a
more complete story. Testflight may be just the ticket if it removes
both parts of the guesswork.

-g
> PH: 541-223-7636 email: gre...@greeninfo.org <javascript:>
> Web: www.GreenInfo.org <http://www.GreenInfo.org> www.MapsPortal.org
> <http://www.MapsPortal.org>
>
> Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
> <http://www.GreenInfo.org>
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com
> ---
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to phonegap+u...@googlegroups.com
> <mailto:phonegap+u...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages