XCODE fails to create adhoc IPA - iphone

I have created both developer and distribution (adhoc) provisions. However, I can only create IPA in xcode with the share -> save to disk button using the developer provision.
If I use distribution provision, it just fails silently.
I have tried deleting the provision on the portal and recreated a new provision, still the same.
Any idea how to fix? Should I reinstall xcode? Thanks.

There are developer certificates that allow to install onto hardware physically connected to the machine where Xcode runs on.
There are Adhoc certificates, created after on the developer web portal you entered the UDID of your user devices. That type is used used for adhoc distribution and the resulting IPA can be send to users to install via iTunes without going through the app store.
There are distribution (Release) certificates that are required to put stuff into the app store.
In project properties ensure you have the correct certificate for the chosen build type selected.
When in doubt about the adhoc profile then delete it and copy the release profile across. Change the certificate from release to adhoc and try again.
You can test your own adhoc builds by doing a build and archive, then drag and drop the resulting IPA onto iTunes (apps tab) and do a sync.

Related

iPhone - App validation succesful, but loading developer build failed after this

I created distribution profile and built app with the distribution profile. I have validated the build and the validation is successful.
After this step, i tried to cross verify the app once again and built an app with developer provisioning profile. Archive file is created successfully. But app is failing to install in mobile.
What is the reason behind it.
Make sure you dont have duplicate keys in your keychain. Delete the old ones and create a new key and prov file then everything will work fine. Normally just dupe entries can cause this.
there are 2 reason for this error
1) you are not add device UDID in your developer provisioning profile.
2) In your device an app is already install with same developer provisioning profile so the your app is not install in your device.

Failed to install iphone application for ad hoc

I followed the stepped to create a ad hoc carefully:
Added the testers team devices to the devices list in iOs Provisioning profile page
Created a new distribution profile for ad-hoc
In xcode I chose the project and clicked on product->archive.
I sent both the archive (ipa file) and mobile provision to the testers team.
The application failed to install.
I saw an answer of a developer to set in build settings the provisioning file to Code Signing Identities to the distribution profile here
In the list I can see only iOS Team Provisioning Profile that was created by xcode.
This is probably not the distribution profile.
What is missing? How can I set the build settings to the distribution ones?
In the IOS Provisioning Portal, in the Provisioning page, click the 'Download' button by your new distribution profile and it should get added to XCode.
To check you have it, go to XCode Organizer, Devices, then Library / Provisioning Profiles on the left.
You may also use https://testflightapp.com.
This is a free service and works very reliably - you can manage your testers and test ipa's easily.
First I also tried testing my app without such a service - but I ended up using this, since it's also very easy for the testers.
Create Distribution certificate and Provisioning profile.
You should have the Distribution certificate in key-chain.
Download Distribution Provisioning profile and double click on that profile.
Confirm you are having the profile in XCode -> Organizer.
In case the Add-Hoc deployment won't install on a testing device, and you have the device added to the profile, and the app signed correctly ...
Ok, what I did is to add an Entitlements.plist file and set the Can be debugged option to NO and set it on the target as the Code Signing Entitlements, but actually I don't know if this was the fix because I won't try again and again, now that it worked.
Then, actually I didn't archive the app and save the .ipa file from Organizer - Archives, but instead I've sent the .app file from the build/Release-iphoneos as it is, together with the profile downloaded from dev account. It will install in iTunes and it just worked, after couple of hours of frustration.

Ad-hoc distribution in XCode 4

I have a problem, I've got ad-hoc distribution povisioning profile. I have done all procedure
product/archive and there are only two buttons validate and distribute and NO share button.
What to do? I followed this tutorial http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/ But there no button share.
I tried to click distribute then chose save for enterprise or ad-hoc distribution then saved it but ipa file doesn't work on IPhone(.
Please help me.
I will try to make it simple for you:
Collect UDID for each iPhone/iPad you have then login to the provisioning profile and open the Devices page and add them.
Generate distribution certificate from the provisioning portal
Create new APP ID with bundle ID
Create ad-doc dist. profile
login to iTunes Connect and create the App details
download and install the ad-hoc profile and the certificate you generated.
configure your xcode project to referee to the bundle id and sign the build with the profile you just installed.
archive the project and distribute it through www.testflightapp.com or just send the ipa file to the testers so they can install it through iTunes.
TestFlightApp will make your life easier and save you time telling the testers how to download the ipa through the itunes.
Do you have the UUID of the device you are trying to install to registered to your developer account and added to your ad-hoc provisioning profile?
Is the build configuration used for archiving set to use this provisioning profile?
When you archived to a .ipa, did you try to install it through iTunes?

iPhone Provisioning: The app was not installed because the signer is not valid

I have an iPhone app that was handed to me. I deleted all of the existing certificates & provisioning profiles and created them from scratch. I believe I have set everything in the Provisioning Portal correctly:
Distribution Certificate created
Devices with correct UDID's added
Ad-Hoc Provisioning file created with associated devices
I was able to successfully build & Archive my application. When I save it as a *.ipa and drag that and the *.mobileprovision file into iTunes everything is good, until my phone is syncing.
At that point I get an iTunes Sync: Failed to Install error. Other testers get the error: The app was not installed because the signer is not valid
I am not sure how to resolve this?
I have received that error because I had created my .ipa file with the ad hoc provisioning profile BEFORE I added the devices. Are you sure that you are using the most recent provisioning profile when you create the ipa? You may need to check which scheme you are using and verify its right
Everything was correct, except for the final stage where I am given the save options. The profile matched my Distribution profile, but for the wrong app. It just defaulted to one of them. I had to manually change it to the Ad Hoc Distribution I was building for. Silly mistake.
This question was not resolved by the above suggestions, however we were able to fix it by removing the entitlements from the build.
This problem happened while working on an old app we were updating. No jailbreaking, just an ad hoc .ipa sent over email between team members. All provisions were correct.
We were able to figure out the issue was entitlements by trying to install using "iPhone Configuration Utility" instead of iTunes. That gave us the actual error message which was easy to fix.
Debugging this issue was easier than with iTunes. It also has better UI for installing ad hoc builds. I recommend you try it here:
http://www.macupdate.com/app/mac/27986/apple-iphone-configuration-utility
i already face this , finnaly i found,.
If Your Certificates, Provisoning Profiles then & the ipa is generated,,
so there is no problem in your ipa File,
But Problem in Specific Device in which you are try to insalled,,
If Your Device is JailBroken Then Easily iTunes cab Install ipa,,
But If Not Then You Have To Register/Add device to
https://developer.apple.com/devcenter/ios/index.action
->Procsoning Profile -> Devices
Then & Then Ipa File Is Installed

How do I test my app on iphone

I am university student, and i received from school an invitation to apple developer which i created an account and joined the group. I downloaded and installed the "WWDR intermediate certificate" and installed it, also noticed that they added my device in the provisioning profile.
From here I am lost, were I am not sure what is the next steps I should do
Login to the Member Center
Go to the provisioning portal
Create a developer certificate (different from a distribution cert, which you'll need for AppStore release)
Create an App ID (and add a device, if you're doing an ad hoc app)
Create, download, and install a provisioning profile
Plug your iPhone into your Mac
Build your Xcode project for the device (instead of for the simulator)
In the developer portal you should:
Enter your app and give it a name.
Add the app to a provisioning file.
Download the provisioning file
Drag that file into Xcode.
In the organizer-window in Xcode - add the provisioning file to your phone. This might not be necessary since Xcode can automatically download a team provisioning file.
That was from the top of my head. Try search for a guide or tutorial for it, there's plenty of them :)