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.
Related
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.
We built a iphone app and now we would like to export it to an .ipa file so we could drop it in itunes. we we can't figure out how to do this, a lot of tutorials on the internet are related on older versions of xcode.
Could someone help us?
Go through menu: Product -> Archive
Then it opens "Arhives" tab in Organizer. Select most recent archive and tap "Distribute" button.
Then select save for enterprise distribution / ad-hoc distribution and save it at your desired location on mac.
Note : You need to have valid certificates/keys in your keychain and its associated provisioning profile for creating an archieve.
I created an app on Xcode and synced it to iPhone and it works fine. Now, i want to sync the app to iTunes so that i can copy the ipa file and send it to someone else for testing.
But the app is not getting synced to iTunes.
Is there any way to get the ipa file?
My app uses sqlite database. Is that the reason for not getting the app synced?
Try this:
1) Build a app. And you will get a .app
2) Open iTunes
3) Drag and drop a .app to the iTunes at left panel on top. For truely drop, you must see a Green "+" about cursor when you are draged a .app on panel.
4) iTunes will convert your .app to .ipa file
5) Look at Users/{you}/Music/iTunes/iTunes Media/Mobile Applications folder and find your IPA app file
Hope this helps you
I think you're over thinking this one, instead of deploying to your phone then syncing back to iTunes, try archiving your app, then making an ad-hoc distribution. This will give you the IPA
Now, I'm not completely sure about this but Apple may have specifically put protocols in place to keep your from making your own ad-hocs your the way you described.
In xcode go to 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).
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.