How to create .ipa file & how to install .ipa in iphone/ipad? - iphone

I have developed a mobile native app using jquerymobile.
Now I want to deploy that app on iPhone.
For this one I want .ipa file. How to create .ipa & install .ipa file in the iPhone?

To complete this you will need to do the following:
In Xcode, Go To Product -> Archive (this will build the app)
after the build is complete the Organizer - Archives window will show (this lists all of your archived versions of the app)
at the top left above the list there will be a Distribute button, click it
this will bring up a 'wizard' for creating the .ipa file
Select the Save for Enterprise or Ad-Hoc Deployment option
click next
you will now need to select a Code Signing Identity (this is created in the Provisioning area of the apple developer portal
if you do not have a Development or Distribution cert to create one go to https://developer.apple.com/ios/manage/provisioningprofiles/index.action and create one for the app you plan to create the ipa file for
note: you will need to have the cert installed on your keychain before it will become an option, as well if you are in the process of
creating the file you may need to restart after installing the cert
to the keychain
select the cert that you created for Development/Distribution
click next
this will take a few moments so be patient, once complete it will ask what you would like to name the new file
enter the name of your new ipa file and this will be what you will need to send out or make available to your users
After that for your users who need to install the ipa on their devices you can check out http://www.itexico.com/blog/bid/41187/iPhone-or-iPad-Testing-Installing-applications-with-a-ipa-file
note: my users have not been required to use the .mobileprovision file, but that has been my experience
Hope this helps!

Look into PhoneGap that probably does what you need

In Xcode, Go To Product -> Archive then after build archived it will show a screen there will a option like Share. Once you will click you will get the other options in which one of them is .ipa. Select and build it. For installing you need to add via through iTunes.

Related

Application installation failed from iTunes

I changed the version number to a higher version in my iPhone app. When I run the application from XCode, it runs successfully. But When I try putting it on my device from iTunes, installation failed.
Any ideas?
I have gotten this error before. It happened because I signed the build and the IPA with different keys by mistake. You need to be sure the one in your build settings matches the one you use to sign the IPA when you make it from the archive. Also of course they both need to be adhoc certificates,
You need to delete the Profile that is present In settings>General>profiles there delete the profile that belongs to your app also delete the app from the iPhone and download a profile form developer.apple yourAccount then drag and drop on the desktop and double click it and then drag and drop both ipa nad that profile in to the iTunes then sync the app will install now

How to show iPhone app to the client without submitting to the app store (ad-hoc distribution)

I want to show my app to the client without submitting to the app store. I was following the below instructions. But my app doesn't display in iTunes. Could you please help me?
Login to the iPhone developer portal website.
Add their iPhone UDID to the list of devices. Generate a provisioning profile that includes your own test phone and theirs. Download the file (ends with .mobileprovision).
Double-click it to install it on your development machine. Quit and restart Xcode, then set your code signing identity to the name of this profile. Build the binary.
In the left side of Xcode "Groups & Files" bar look for Products (may need to expand the folder).
Select {yourapp}.app. Right click and choose 'Reveal in Finder.' Now take that .app file and the .mobileprovision file you downloaded, zip them both up and send it to the client.
They will need to unzip the archive, then drag-drop the .app and .mobileprovision onto their iTunes and sync the phone. Your app should show up and run.
The portal site has more detailed instructions, but this is basically it in a nutshell.
TestFlight is a great free service to do most of the hard work here for you. Follow these instructions for generating an IPA file and distribute it to whomever you like, without having to go through iTunes.
You still have to follow steps 1, 2 and 3 from your existing instructions.
First create distribution profile using apple developer portal you can follow this tutorial.
http://www.manyfriends.com/wiki/iphone/index.php/Create_an_ad-hoc_provisioning_profile
After installing profile follow this to create a binary that you will send to you client.
http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/

Installing Developed Application into iphone device

Can anybody help me to install my developed app into an device.
what are the steps to execute my application in device.
how can i connect the device to run my application in device????
Please help me out.
Thank you..
Creating ad-hoc distribution profiles
The instructions that Apple provides are not very concise or clear. This is how I created a general provisioning profile that will work with multiple apps, and added a beta tester.
My setup:
Before you get started, make sure that..
You can run the app on your own iPhone through Xcode.
Step A: Add devices to the Provisioning Portal
Send an email to each beta tester with the following message:
To get my app on onto your iPhone I need some information about your phone. Guess what, there is an app for that!
Click on the below link and install and then run the app.
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285691333&mt=8
This app will create an email. Please send it to me.
Collect all the UDIDs from your testers.
Go to the Provisioning Portal.
Go to the section Devices.
Click on the button Add Devices and add the devices previously collected.
Step B: Create a new provisioning profile
Start the Mac OS utility program Keychain Access.
In its main menu, select Keychain Access / Certificate Assistant / Request a Certificate From a Certificate Authority...
The dialog that pops up should aready have your email and name it it.
Select the radio button Saved to disk and Continue.
Save the file to disk.
Go back to the Provisioning Portal.
Go to the section Certificates.
Go to the tab Distribution.
Click the button Request Certificate.
Upload the file you created with Keychain Access: CertificateSigningRequest.certSigningRequest.
Click the button Aprove.
Refresh your browser until the status reads Issued.
Click the Download button and save the file distribution_identify.cer.
Doubleclick the file to add it to the Keychain.
Backup the certificate by selecting its private key and the File / Export Items....
Go back to the Provisioning Portal again.
Go to the section Provisioning.
Go to the tab Distribution.
Click the button New Profile.
Select the radio button Ad hoc.
Enter a profile name, I named mine Evertsson Common Ad Hoc.
Select the app id. I have a common app id to use for multiple apps: Evertsson Common.
Select the devices, in my case my own and my tester's.
Submit.
Refresh the browser until the status field reads Active.
Click the button Download and save the file to disk.
Doubleclick the file to add it to Xcode.
Step C: Build the app for distribution
Open your project in Xcode.
Open the Project Info pane: In Groups & Files select the topmost item and press Cmd+I.
Go to the tab Configuration.
Select the configuration Release.
Click the button Duplicate and name it Distribution.
Close the Project Info pane.
Open the Target Info pane: In Groups & Files expand Targets, select your target and press Cmd+I.
Go to the tab Build.
Select the Configuration named Distribution.
Find the section Code Signing.
Set the value of Code Signing Identity / Any iPhone OS Device to iPhone Distribution.
Close the Target Info pane.
In the main window select the Active Configuration to Distribution.
Create a new file from the file template Code Signing / Entitlements.
Name it Entitlements.plist.
In this file, uncheck the checkbox get-task-allow.
Bring up the Target Info pane, and find the section Code Signing again.
After Code Signing Entitlements enter the file name Entitlements.plist.
Save, clean, and build the project.
In Groups & Files find the folder MyApp / Products and expand it.
Right click the app and select Reveal in Finder.
Zip the .app file and the .mobileprovision file and send the archive to your tester.
Here is my app. To install it onto your phone:
Unzip the archive file.
Open iTunes.
Drag both files into iTunes and drop them on the Library group.
Sync your phone to install the app.
Done! Phew. This worked for me. So far I've only added one tester.
See Installing developed application into iPhone device
You will need a developers account, iTunes, a Mac computer, and the iPhone.
Follow this tutorial:
http://mobiforge.mobi/developing/story/deploying-iphone-apps-real-devices

I dont know how I can save project to ipa

Thank you
I learned a lot from this site
I have a question
I finished the application is running
webview
But I remain one step keeping the program
And send it to the iPhone to try it on two ipa
I want to save formulas ipa
Thank you
You can't just save an app as an IPA. Only if you submit it to the app store with a proper developer's license will they then distribute it in the store in that format
Running "Build and Archive" from the Build menu in Xcode will create an ipa file.
Stepwise Procedure to create an IPA file,
1.First of all,choose your device as IOS Device in Scheme near Breakpoint tab in Xcode.
2.In Xcode menu,Product->Clean and build your application.
3.If the provisioning certificate is not valid,it will lead to build failed with an error.If so you have to change it to a valid certificate through your project->build settings.Else if build succeeded just leave this step.
4.Then select Product->archive,it will create an archive file in Organiser->archives and open it up for you after archive finished.
5.choose share tab in Organiser followed by contents->.ipa and Identity->choose your valid distribution certificate and click next.
6.within a minute it will ask name for your IPA file to save.Give a name and save it in Desktop.
7.Open iTunes and drag and drop your IPA file in Library->Apps.
8.Now connect and select your Device in itunes->choose apps tab under it and sync your app ipa to the Device.It will install your IPA file to the device.
9.Thats all.Now you can run your App IPA file in your device.

AdHoc provisioning - what's the easiest way to add a few more devices to an existing project that's still in development?

I have a project that I've been working on for a while. It is a standard Xcode/Objective-C iPhone app. I created the provisioning file for my device and a couple others. Now I would like to add a few people as testers.
Do I need to download and install a new provisioning file?
Do I need to change settings in Xcode?
What's the easiest way to do all this?
Thanks!
You will need to create, download, and distribute a new .mobileprovision file, and reconfigure your project to use it:
In the iPhone Developer Program portal, add the new devices.
Edit your existing ad hoc distribution provisioning profile and check the boxes to add the new devices to the profile.
Refresh the Distribution tab for a few seconds until the profile status changes from Pending to Active.
Download the modified .mobileprovision file, and install it by dragging it onto the XCode or iTunes icon in your dock.
In XCode, right click on your target, do Get Info -> Build, and change your Configuration to Distribution.
Change the setting under Code Signing Identity -> Any iPhone OS Device to use your new provisioning profile. Pay close attention to the dates in the list and make sure you use the most recent copy.
Distribute the new .mobileprovision file to your users with your next ad hoc build.
You don't have to recompile your project again. In fact you don't even have to open XCode.
All you have to do is create a new mobileprovision file and distribute it with the existing app.
Your end users have to download and install the new mobileprovision file and app, by this order.
Here is a step-by-step.
Unless the other people are iphone developers with their own development profile, you will need to make an ad-hoc profile and build.
It is pretty easy... just follow the instructions in the developer portal. All you have to do is clone your release configuration, change a few lines and add a plist entitlements file (all provided in the instructions). Then just send the tester the build and the provisioning profile you create with their device-id included and they should be able to drag it into itunes to install.
If they are developers and people you trust, just give them the code and have them change the Bundle Identifier to whatever is in their development domain.