Unable to sign iPhone app with distribution certificate - iphone

I have struggled every step of the way with the process of submitting to the appstore. I am now at the point where it asked if I wanted to use the distibution certificate I have in Xcode.
I selected yes and I get an error as below. What is the problem with this? please help. I have stuggled more to setup this process than to develop my app.
The iPhone “**********” doesn’t have the provisioning profile with which the application was signed.
Click “Install and Run” to install the provisioning profile “#######” on “**********” and continue running “$$$$$$$.app”.
If I click install and run it just says it cannot install blah blah

Open Organizer in Xcode (Window > Organizer).
Does your iPhone's name appear there? If not, is your phone plugged in :)? Also, some people have had this issue when installing multiple versions of XCode - if your phone also doesn't show up in iTunes, reinstall iTunes to address this.
If it does show up, click on it. Look at the provisioning profiles. What do you see there? Do you see one that matches your app?

Make sure your build configurations are correct for the following:
Distribution (which i think you've got)
Device (for whichever device you're building for)

There are very detailed and clear instructions provided. Start all over at #1, and follow them through carefully one by one. Check each step several times to make sure you've done it right.

Related

Can I make an IPA file for iOS devices that are not in the provisioning profile?

I found a way to make a ipa file:
Add necessary profiles and adjust build settings.
Set device as target to run the application.
Build the product.
Go to Products->yourAppName.app. Right click and show in finder.
Drag & drop to itunes profile and binary file.(drag it to Apps)
Select app in iTunes and right click to show in Finder. And there you can get the .ipa file.
But, the devices which are not in the development team can not install it?
Or, did I miss some configuration steps?
Do we have a way to solve this?
No this is NOT possible. The only way to install an app on a device without using the app store is with the ad-hoc method provided by apple, some info about this is found here. For the ad-hoc method you will always need the UDID of the device you want the app to be installed on.
There are a couple of alternatives
You will need an "Enterprise Certificate" for your business. This allows you to install on any device. However Apple does not issue them lightly but if you are working for BigCorp LTD you might be able to get one.
Or use TestFlight at www.testflightapp.com to distribute your build. Im not sure if thats predicated by you having a Enterprise cert in the first place. Check them out.
You can also build the IPA the official way. Just create an ad-hoc provisioning profile, tell Xcode to use it for the Release build and choose Product → Archive. When the Organizer pops up with the app archive, choose Distribute and Save for Enterprise or Ad-Hoc Deployment. Then choose your identity and voila, you get the IPA.
But in either case the provisioning profile has to contain a list of all devices the app is supposed to run on, AFAIK there’s no official way around that.
I used to build .ipa package by the same method with you. But this kind of ipa WITHOUT provisioning profile in package, so it could be run only in iOS devices which has been jailbreak.

How to put an application on an iPhone/iPad device?

I have an application that I developped using the iPhone/iPad simulator.
I am now at the point I want to test it on a real device.
I just got a license from apple.
Where should I go on the net to find out the information on how to transfer my application to a real device ?
Thanks.
Check out this article,
http://mayurbirari.wordpress.com/2011/01/20/ad-hoc-distribution-build-for-iphone/
you can create adhoc build and install this application not only on your device but on multiple devices.
Follow Apple's guide here:
http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices_and_Digital_Identities/devices_and_identities.html
If you log into the iOS Dev Center using your new account details, you will find a link on the right-hand side named "iOS Provisioning Portal".
When you reach the portal home page, there is a panel that allows you to launch the Provisioning Assistant wizard. This will walk you through the process.
This may be worth following for the first time, then evaluate the entries in the various parts of the provisioning portal to see how you can set this up manually in future.
If you've followed all the instructions for setting your development environment up after signing up for the Developer program it's just a case of changing the target from Simulator to Device in XCode and then running it. Your app will be transferred to the device and executed on it.
You can follow any one of these links :-
1) http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices_and_Digital_Identities/devices_and_identities.html
2) http://mobiforge.com/developing/story/deploying-iphone-apps-real-devices
EDIT : If you've got the license , go to your Apple ID -> Provisioning Portal -> Certificates -> Download the Certificate.
Save it to the Disk.
Double Click on it to install.
Open your XCode.
Change the Build from Simulator to Device (Make Sure your device is connected.)
Just Build and Run.
Hope this can help you :-)

iPhone application provisioning profile

I am working on my iphone application and it was working on the device. I don't know what I did but now it says "App cannot be installed on the device. Please install the provisioning profile abc_pop". When I say install and run then it says failed to run on device. what should i do. How can I reset everything. I know it was working before.
You should make sure you have the correct provisioning profile selected in your project settings. In XCode, go to Project->Edit Active Target, and then scroll down to "Code Signing Identity". Make sure that field has "abc_pop" selected, or, if not, then click on this field and select "abc_pop" from the list. Then try building again and see if it works.
Another possibility is that your provisioning profile may have expired. If this is the case, you'll need to renew it on http://developer.apple.com/iphone
Just from above, restarting Xcode often works. It's happened to me a number of times, doesn't always work though

Putting my iPhone app on my phone to test?

How do I take my working iPhone app and put it on my phone to test with? I dont seem to see how and my googleing doesn't turn up what I think I am looking for...
I am a registered developer and have paid my $99 already.
Would anyone know?
Note: I have already placed the same answer somewhere else for the same question.
There are some steps you need to follow to test your app on your personal iPhone. Below you can find all the steps:
Create a MAC certificate at first step.
Upload that certificate to developer account.
Open developer account at https://developer.apple.com
You can now find an option for device id in your developer account on left side.
Register your iPhone device.
It is time to create your unique identifier on developer account, download your certificate and install it on XCode organize
Now open your project and embed your unique identifier in your project.
These steps can be beneficial for all software testing gusy involved in mobile application testing.
You need to register as an Apple developer. This will cost you $99/year.
That is the only way that I know of apart from Jailbreaking your phone.
Open Xcode Organizer window and provision your device for development. This will register the device UID with Apple and install the development provisioning profile on it. If you don't have provisioning profile, Xcode will create one automatically.
Once this is done, you need to set your build to use your DEV cert to aign your app. Then you can switch the build configuration from Simulator to Device and build and run on your phone.
Did you just complie your project or you complied and Run? If you Build your project and you have no errors it means everything it's ok. The next step is to Build and Run your project or just Run your project.
If you Run your project and nothing happens it means that you have something worn in your target configuration. Did you change anything there? In the Project Tab in your XCode go to Edit Active Target Settings and check that your Base SDK and Target SDK match your iDevice SDK.
IF you don't find out what the problem is, contact me, i could help you in anything you need.

Code Sign Error When Building iPhone Application

I am new to iPhone development. I just registered with Apple for the iPhone Developer Program. When I try to build, I am receiving an error:
Code Sign error: a valid provisioning profile matching the application’s identifier could not be found
I'm not sure what is wrong. I tried browsing the Internet but I get confused. Can anyone help me with what I should do?
At first it seems a complex process, but it's pretty straightforward when you've been through it a few times.
In a nutshell the process is this:
(I'm assuming you've set up your iPhone/iPod touch as a test device)
Via the iPhone Developer Portal
Create an App ID
(give your application a name, this is just for reference on the website and nothing to do with your own build of your application)
enter a string to identify it, like com.yourcompany.appname
(this is important and should be the same as in your .plist file inside Xcode)
Click and Save this
Go to Provisioning
There are 2 provisioning profiles you'll need
a) development - so you can install your application on a test device (i.e. your iPhone / iPod touch)
b) distribution - if you want to sell the application via the App Store
You can create the profiles by selecting your App ID, created in the previous step, from the drop down list and clicking Save
In a few moments (usually, though it can be longer) the certificate is available for download. Download this to your Mac and drop it onto the Xcode icon. Sometimes the development profile doesn't work for me like this and I drop it directly into the Organiser window in Xcode that shows my connected device.
Besides, if you are in a team account, team admin need to edit Development Provisioning Profiles, and add modify your certificates privilege.
In Xcode inside 'Edit Project Settings' you can select the certificate you wish to code sign with. Usually for debug I sign with the development certificate. Follow the instructions on the apple site and clone the release profile and call it something like release and sign this with your distribution profile. (You won't be able to load the app onto your phone with the distribution profile selected)
Make sure you select the target device as Device and not Simulator when building for the App Store!
Hope that helps, it's from memory so apologies if I've skipped some small steps.
xcode top left corner make sure you're running as "similator" "iphone"
Did you set up an iPhone provisioning profile for either development, ad hoc distribution, or app store distribution?
If not go to the iPhone developer program portal, which is linked from the developer.apple.com/iphone. Apple has provided a great series of video tutorials.
Just make sure you install the certificates or the profile won't be selectable in the project configuration. When you download the certificates double-click on them to install.
Possibly more use for others seeing this issue on a previously configured dev environment.
This error is also shown if your provisioning profile has expired, in this case you can go through the steps in Neosionnach's answer or you can go to Organizer, click on the profile and click Refresh.
This was the winner for me when I had this issue.
As of July 2012, you can go here:
https://developer.apple.com/ios/manage/overview/index.action
Then launch the "Development Provisioning Assistant." It walks through all the steps outlined by FiddleMeRagged.
You can use this process to create a Wildcard ID, if you're just looking to test your app on your iOS device and don't need to deploy to the App Store right away.