PhoneGap:Build iOS ad hoc

  • 3
  • Problem
  • Updated 9 years ago
Hello,

I'm loving the service so far, and I've been able to transfer the ipa's to my iPhone no problem.

But now I'm trying to get ad hoc distribution working, specifically https://testflightapp.com/.

This would be great for a complete cloud iPhone development solution. (something y'all should maybe look at integrating)

but when I try to upload the ipa I get, "'Invalid IPA: the app was not signed with an adhoc provisioning profile.'"

I've recreated everything, and for somereason my ipa's still come without a Entitlements.plist

Any help would be great.

Thanks,
Jason Stallings
Photo of Jason Stallings

Jason Stallings

  • 63 Posts
  • 4 Reply Likes

Posted 9 years ago

  • 3
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
The Entitlements.plist file is not required anymore as long as the get-task-allow is specified in the mobile provision.

Can you email me your mobile provision or provide me your app id. (The number located in the url bar)
hardeep.shoker@nitobi.com

Specifically in your mobile provision you want to look for get-task-allow as false and a list of devices. (this ensures that the profile is for adhoc distribution)

Hardeep Shoker
Photo of adamprocter

adamprocter

  • 57 Posts
  • 3 Reply Likes
Is there a fix for this to apply to future apps ?
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Sorry I don't quite understand your question.
Photo of adamprocter

adamprocter

  • 57 Posts
  • 3 Reply Likes
I have the same problem but I don't want to just fix the app I am currently making but I will want to ad hoc distribute a bunch of apps so is there a setting I can adjust ?
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Well the above information I was referring to is generated by apple's developer provisioning portal. I use adhoc signing my self when testing apps through build.

Hardeep Shoker
Photo of adamprocter

adamprocter

  • 57 Posts
  • 3 Reply Likes
ah ok, thanks so I created a new app ID same name as in id of config.xml and created a new adhoc Distribution Provisioning Profile and selected the app id I then created new app in Phonegap:build from zip and signed with adhoc profile and my p12 then download and tried to use IPA in testflight and I still get error not app was not signed with an adhoc provisioning profile ?
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
What is your application id on build?

(something like: http://build.phonegap.com/app/#)

Hardeep Shoker
Photo of adamprocter

adamprocter

  • 57 Posts
  • 3 Reply Likes
Photo of adamprocter

adamprocter

  • 57 Posts
  • 3 Reply Likes
any thoughts ?
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
I took a look at your p12 and mobile provision, nothing seemed out of the ordinary. I would first try and install the ipa via itunes, also make sure to drag your mobile provision into itunes before doing so.

Hardeep Shoker
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Here are the direct instructions from apple:

- Create and Download an iOS Distribution Certificate
- Create and Download an Ad Hoc Distribution Provisioning Profile
- Build your application with Xcode
- Share your application file and the Ad Hoc Distribution Provisioning Profile with the owner of each device
- Recipients of the application will need to drag the application file and Ad Hoc Distribution Provisioning Profile into iTunes, then sync their iPhone, iPad or iPod touch to iTunes to install
Photo of Jason Stallings

Jason Stallings

  • 63 Posts
  • 4 Reply Likes
Man I'm having a ton of issues. When I build it when XCode everything comes out right and the AD HOC stuff works. When I use PhoneGap everything just gets screwed up and I don't know why :(

For instance, here is the directory structure for the IPA Build.PhoneGap gave me.

/Gapper



And this is inside "www".
/Gapper/www


then inside "Gapper"
/Gapper/www/Gapper


It looks like for some reason my source code is being placed inside the www folder.

And these are the exact same source files I used for XCode. And I've tried re-creating many different apps.

I'm really really stumped.

Edit: oh yeah you'll probably want this.

https://build.phonegap.com/apps/29836
Photo of adamprocter

adamprocter

  • 57 Posts
  • 3 Reply Likes
I have made sure profiles are created correctly,although now Im not building in xcode im using the base for phonegap:build from github

Installing via itunes is no problem at all. But I want to use TestFlight as this allows over the air install and yet it complains IPA has not been made with adhoc profile

posted on testflight as well http://support.testflightapp.com/disc...
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
@Jason please only upload your assets (the contents of the www folder) build will automatically create all the project files necessary for the application.

This may be of some interest to you.

https://build.phonegap.com/docs/start

@adam If you are able to install it through iTunes then there should be no problem with installing the application. You may wish to run this by the TestFlight staff, if there is any problem on our end I will ensure that it is patched.

Hardeep Shoker
Photo of adamprocter

adamprocter

  • 57 Posts
  • 3 Reply Likes
Thanks have sent testflight the IPA file and will report back.
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Sounds great. Make sure to also let them know that you are able to install it via itunes.

Hardeep Shoker
Photo of Jason Stallings

Jason Stallings

  • 63 Posts
  • 4 Reply Likes
Alright thanks, I will try that. How about Phonegap Plugins?
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Plugins are not supported at the moment.

Hardeep Shoker