I have created a iphone app. Everything working well in simulator. I want to test it in device. Provisioning profile or certificates are created and just need to create IPA file.
Please tell me step by step how to do that, if somebody knows it well.I am searching google but not find satisfying result. Thanks a lot.
It is very simple to get .ipa file from Xcode:
Select correct provisioning profile in Project and Targets -> Build Settings -> Code Signing -> Code Signing Identity
In Targets change the Bundle Identifier by Targets -> Info -> Bundle Identifier
Clean your project
Archive your project by Product -> Archive
Organizer automatically open with separate window there you can see you project with Archive date/time and project name
Click Share button from the Organizer window
It will ask to you choose the correct Provisioning profile do this correctly
It will ask you for the location to store, select Desktop or anywhere else
In your selected location the project .ipa file will be stored
Please do the above steps. I hope you got some idea. Thanks.
This may help you out for step by step process of making ipa.
Creating an IPA is done along the same way as creating an .xcarchive: Product -> Archive. After the Archive operation completes, go to the Organizer, select your archive, select Share and in the "Select the content and options for sharing:" pane set Contents to "iOS App Store Package (.ipa) and Identity to iPhone Distribution (which should match your ad hoc/app store provisioning profile for the project).
Chances are the "iOS App Store Package (.ipa)" option may be disabled. This happens when your build produces more than a single target: say, an app and a library. All of them end up in the build products folder and Xcode gets naïvely confused about how to package them both into an .ipa file, so it merely disables the option.
A way to solve this is as follows: go through build settings for each of the targets, except the application target, and set Skip Install flag to YES. Then do the Product -> Archive tango once again and go to the Organizer to select your new archive. Now, when clicking on the Share button, the .ipa option should be enabled.
I hope this helps.
Related
i have successfully created provisioning and distribution certificates and ready to upload my app. but, while posting i can't access to select the distribution profile?
#NeerajNeeru:
Firstly, Make sure that you download a new copy of distribution provisioning profile for App Store from the account you want to submit the application with and install the same profile by double clicking it. Once you do that select it under your Project Settings and Target Settings under the Release section.
Secondly, Make sure you have selected Release to be run under Archive under Manage Schemes before you build for archiving and archive the app.
Once you select Release under Archive in Manage Schemes, make sure you do Product -> Clean your application and then do Product -> Build For Archiving and then Product -> Archive.
EDIT:
Refer to this: Xcode 4.3: Codesign operation failed (Check that the identity you selected is valid)
Let me know if you need more help
Hope this helps.
i think you have not opened the downloaded profile, download the profile from developer.apple.com and doble click it. it will be able to select now, and re assign profile in your project and target files even they have already selected.
I dont have a paid account at apple site. Therefore my client sent me development certificate after creating provisioning profile there. Now he asked me to load this certificate in xcode and generate an executable or ipa file to test the application in iPhone device.
Can anybody tell me the way to achieve this?
Thanks in advance
I do that following these steps:
Build the source code
Go to Organizer > Projects and select your project, then open the derived data folder by clicking on the arrow.
Locate the .app file (usually Build > Products > Debug-iphoneos) and drop it to iTunes
Pick the app from iTunes and drop it to the desktop for example. iTunes will convert that to ipa.
Do the Following steps:
1) First get the provisioning profile.
2) Set the debug mode to iOS device.
3) Go to Product, Select Archive and ur project will be Archived.
4) Next Go to Organizer, select the created archive u have created. Then click share. It will ask u to Allow or not. Select allow. You can set name of the app . Finally ur ipa file is created
1) First complete your coding check it with your provisioning profile.
2) Then click to run on device iPhone or iPad.
3) then go to menu -> prodcut -> clean.
4) After cleaning menu -> product -> Archive .
5) After completing it click on distribute and then select the option for save as enterprise or adhoc application and click on next button.
6) It will take a minute as per your app file size.
7) then give a name of ipa and save it where you want.
Please help me export my application to iTunes Connect. I dont understand the documents, I have tried my best. I cant find the release of my .app, only the debug version.
I am using xcode 4. Also I dont know if I have signed the application correctly.
Here is a screenshot of my build settings, are these correct.
I setup a distribution certificate, an app ID with a wildcard mask, and a provisioning profile for the App Store, this provisioning profile is then imported into the organizer and on the screenshot below, you see I have assigned it to the Release build.
I cant find the release build at all on my system, only the debug file and would you say my certificates/profiles are set up currently.
Make sure you have configured the Archive panel for the scheme with the name of the archive to create
Then choose Product | Archive from Xcode's menu
Then have a look in your organiser's Archive section
And here are the docs you should be looking at.
First, make sure your Scheme is set to Release. Then, Build your app. If all goes well with no errors, you should be able to get your release build of your app in your Derived Data directory (this is the default Xcode 4 location).
If you don't see anything in Derived Data, check under Xcode->Preferences and go to the Locations tab. That will show you where your builds are going.
Unless I misunderstand the question, to send your app to iTunes connect from Xcode4 you choose Product -> Archive from the menu.
If your certs and IDs are correct, and they seem to be, then you will be shown the Archives view in the Organizer. Select the recent Archive and choose Validate.
If it validates, choose Submit. Your app should be submitted to iTunes Connect.
I need to share distribution build to my client. When I used Xcode 4.0 it was very easy to find it. But now I am not able to see where the build folder places in the application folder. Now I am using Xcode 4.3. And it is little confusing for me. Can you guys please tell me the steps to find it out.
Thank you,
Chandra.
Connect your device
and
select XCode-->product-->archive then ipa file is generated in organizer then select your file and click on share and save,your ipa file is saved.
You should check your build settings in the xCode preferences.
In Xcode 3, you build the binary with Ad Hoc code signing settings and navigate to ~ProjectPath/build/AdHoc.ProjectName.
In Xcode 4, you have to "Archive" your binary. Then, open the organizer and select your app from the Archives menu. Once you've done that, choose the build of the app that ou want to share and click the "Share" button. Xcode 4 will prompt you to choose a codesigning certificate. This must match the one in your scheme. Once that is done, Xcode will ask you where to put it. Choose a location and then you will have answered your own question: The build is wherever you left it.
I've got my apps running on my iphone, great, however to list on the itunes store I need the "universal binary" thing.
I've tried finding answers, but I can't seem to find a concise useable explanation to doing this in xcode. I always get errors when I try to build a binary. Can anyone point me towards a basic step-by-step procedure I can follow to creating a universal executable binary which can be uploaded on the itunes store?
One more thing, is there some type of app, like the rename project app, or applescript thing, that can do this for me with a few clicks?
Try this:
Prepare a new provisioning profile for App Store
Make sure you have Ad Hoc distribution working OK.
Go onto the Program Portal > Provisioning > Distribution
New Profile button
Distribution Method: App Store
Profile Name: MyApp App Store (or whatever)
App ID: MyApp (you have already created one right?)
Submit button
Set up the new profile/configuration in XCode
Download the certificate (you can click on the Distribution tab to reload that tab while it's being generated) and load it into XCode
In XCode, open your project and go to Project > Edit Project Settings (or double-click on the first item under Groups & Files panel)
Configurations tab, click on your existing Ad Hoc distribution configuration, that already works, and click Duplicate button. Call the new one "App Store"
Click on Build tab, then under Code Signing > Code Signing Entity in the popup choose "iPhone Distribution - MyCompanyName" under "MyApp App Store"
Build & Upload to iTunes Connect
Clean all for good luck, then set Active Configuration to "App Store", build & go. Test it on your iPhone.
Find your built app in the Finder, in your project directory > build > App Store-iphoneos > MyApp.app ... right click and "Compress MyApp.app"
Upload resulting MyApp.zip to iTunes Connect.
A Universal Binary has nothing to do with it. To distribute through the App Store, you need to create a Distribution provisioning profile. The iPhone developer portal has step-by-step directions for this. look under the "Distribution" tab.
I followed the instructions listed by sbwoodside but had problems with the last part (Build & Upload to iTunes Connect). I realized that the built version didn't run on the device. This is what worked for me:
Build & Upload to iTunes Connect
Clean all for good luck.
Go to "Edit Scheme" and in the Archive menu, select the App Store
build configuration.
Select iOS Device or a specific device in the drop down menu and go
to Product->Archive.
Once Xcode is done archiving, it will open the organizer window and
show the archives section. Select the last archive and click
"Submit".
You will be asked to enter your distribution certificate. Select
the one created for the App Store.
XCode will upload the app to iTunes Connect without the need of
using Application Loader. For this to work, the app has to be in
"Ready to Upload" status in iTunes Connect.
You won't get to test the last version with the device. Therefore it's best to make an ad hoc version before to be able to test all features and once everything is working, duplicate the ad hoc configuration for the app store.
Once you have your provisioning profiles downloaded and installed you need to make some changes within XCode to get the app to work on your iPhone and eventually to submit to the iTunes store. You'll also need to add an Entitlemests.plist object to your project. You also need to tweak your build profile and your info.plist to point to your application name.
But as Mark B already said, just got through the developer portal and follow those instructions. Just make sure your define the right provisioning profile for the purpose.