Installing Developed Application into iphone device - iphone

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

Related

How to build a Hybrid App with Intel XDK for iOS running Dev. without owning an Apple Developer account?

I've been developed a Hybrid App using Intel XDK + Cordova , It has been built for android platform with no pain and is running in a good condition BUT at the time of build for iOS platform the XDK asks me for mobile-provision and p12 certificates and it's password ! I know I should have the Apple Developer account to build the certicates but please pay attention that now I'm living in Iran and its impossible to create one , beside it there is no need to publish the final app on the Apple official App Store , I just need the certificates for build the app and turn my codes into .ipa file , the final .ipa will be submitted into a local market and they will publish it with their certificates and etc ...
THE QUESTION IS : is there any way or solution to obtain a certificate (even fake one) just for bypassing the build stage of XDK !?
P.S. : while ago I found a fake certificates but the XDK had alert for the password
I am an active Intel XDK developer with an Apple account as well as Android and Windows. With the Intel XDK you develop your IOS app on Windows or Linux up until you submit the IPA bundle to the App Store for review. You don't need a developer's account until you are ready to build IPA (iPhone build from the Intel XDK), because you need to download the CSR from the Intel XDK IOS build panels and then log into your Apple Developer's account to create an App Store distribution certificate for each IOS app you will be building/submitting. Then download the certificate, include in your Intel XDK project, then upload and build your IPA bundle. The IPA is Apple's bundle as APK is for Android. Here are the steps to build an IPA from the Intel XDK.
Click the Build IOS from Intel XDK build tab, the project will be uploaded.
When at the Build Screen, don't click Build button, instead click the Ceritifcate edit.
Download the CSR, by clicking the download button and save to your desktop.
Log into your Apple account at http://developer.apple.com and click Member Center.
Create a new account or log into your existing account
Click on Certificates, Identifies, & Profiles
Click on Certificates
Click the Plus button to add a certificate
Choose the App Store and Ad Hoc radio button under Production and click Continue.
Click Continue again to the Upload your CSR.
Now upload the CSR that you downloaded from the Intel XDK build.
Once uploaded, click Generate
Now click download and save your certificate to your desktop.
Back in the Intel XDK, click on browse to upload your new certificate you just downloaded.
You cannot build yet because there is no provisioning profile associated with this app. Cancel the build.
Go back to your Apple Developer account, and select the App ID's from the left menu, and press the plus button to add a new App ID.
Give the App ID a name and a bundle id, the bundle id you will use in the Intel XDK build settings for the App ID.
Press Continue followed by Submit.
Now select Provisioning Profiles in your Apple developer account,
Choose Distribute->App Store and press continue,
From the select field, choose the App Id you just create and press continue,
Now choose the certificate you just created, and press continue.
Give the provisioning profile a name and press Generate
Now download your new provisioning profile and save to your Intel XDK project directory under the www subdirectory. THIS IS VERY IMPORTANT.
From the Intel XDK on the Build Settings, select IOS tab, and locate the Provisioning Profile selection and choose production,
Now click on the Provisioning Profile File and the Add dialog popup appears, then choose the provisioning profile file you just download. You must select from the project www subdirectory.
Go back to the build tab, if a previous build page is showing, close that build page, and choose IOS build.
Then choose Upload Project, VERY IMPORTANT! as you have new changes which include a provisioning profile. Make sure you App ID in the build settings match the Developer bundle id. Also the CFBundleIdentifier can be set to the version number of the app.
When the Build Now page is showm, press the Build button and the Intel servers will build your IPA file.
Upon a successful build, download the IPA to your desktop.
Now log into your Apple developer account, and choose the ITunes Connect option.
From Itune connect, you must create a new App by choosing My App and then clicking the plus button to add a new App.
IMPORTANT: choose the IOS platform and the app you are deploying from the Bundle ID, as well as a Name and language. Then press create.
You app is ready to receive the previously created IPA.
From up til now, you did not need a mac, but to upload the IPA you need a MAC. Copy your recently created IPA to flash drive, or network drive like dropbox, that your mac can also access. If you do not have a mac, there is a service called www.macinacloud.com. If you plan on developing many IOS apps, it is worth buying at least a Mac Mini Intel-edition, not power-pc version.
From your MAC, launch the Application Loader and choose your IPA file. You will receive a successful confirmation of the upload. Wait about several minutes, then go back to ITunes connect.
Choose you App, and scroll down to the Build section, you should see the newly upload IPA with a version number. Select this IPA, and complete the remaining form for the App to prepare to submit for review.
Nope. To my knowledge, there is no way to get around this. For the build process to even work, you need to generate your certificates using the .csr (certificate signing request) associated with your specific Intel XDK account.
An apple developer account must be involved at some point in the process to get an app that can be built using Intel XDK's cloud building process.
(If someone else has information to the contrary, please feel free to correct me)

How to build Adhoc build to test PNS on production mode

I am working on app which is having PNS. PNS is working good on development mode i have tested it on all devices. Now want to test with production mode i have created all certificate on production mode. but now i dont know what is the next procedure. How to create Adhoc build so that it will work on production mode also on stack overflow i read that we need to remove device token which we are using for dev mode so that token will will not same? Is it right way and also let me know how we can create adhoc build for PNS prodcution to work?
You have the right idea: you need to build an AdHoc build of your app. First, you have to go to the Apple Provisioning portal and build an AdHoc provisioning profile for your app. The steps are similar to what you did to build the developer one.
This is very similar to the distribution build of your app. Compile your app in release mode (or AdHoc mode if Xcode has set that up for you). At this point, you can check your build settings so that no certificate is associated with the AdHoc build you are doing. Later on, you will select the AdHoc provisioning profile.
When the build is done, Organizer will open and you will see your app in the list. Select the build from the list and then click on Distribute. Select the second option "Save for Enterprise or Ad Hoc Deployment". In the next screen, pick the AdHoc provisioning profile you generated previously. Hit Export.
At this point, a .IPA file will be generated that you can then install on your device by either uploading to a server and downloading by navigating to its URL OR, the easier option, is to drag/drop your IPA file to iTunes and sync your app from there.
this links are help to you visit
http://kb.applingua.com/2011/10/testing-an-app-on-your-own-device-ios/
http://iphonedevelopment.blogspot.in/2009/01/uuid-hint.html
http://hayageek.com/ios-silent-push-notifications/
push notification form client server ->it receives Apns and send to the ->appropriate mobile
note:client sever-> must be send notification with token
William Hu proposition to this question (was putted in wrong place):
#William Hu
The answer:
1) Build AdHoc build for the app. Just got to Apple Provisioning portal and build an AdHoc provisioning profile for the app.
2) Check the "Building Settings", "Code Signing", choose the profile you just generate (or AdHoc mode if Xcode has set that up for you)
3) Choose "Product" -> "Archive", then "Organizer" window will open automatic. Press "Distribute" button. Select the second option "Save for Enterprise or Ad Hoc Deployment".
Then save the ".IPA" file to your disk.
4) Drag this file (along with profile) into iTunes to test. Also check http://testflightapp.com make test very easy and simple to use.

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

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.

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/

"a valid provisioning file for this executable was not found" in XCode

I'm trying to submit my second app to the App Store. I've followed all the instructions to the best of my knowledge, but I keep getting this error when I try to build and run:
"a valid provisioning file for this executable was not found"
I'm letting XCode auto select the profile automatically. The one I'd like to select is greyed out. But the dropdown selection in the Build tab of the Target window says
"profile doesn't match application identifier"
The other thing I don't get about this is that the selection dropdown shows "com.mycompany.myapp" and then "ABCDEDFG.com.mycompany.myapp" (both of those made up) so that I see they don't match. I have the unique identifier profile installed in the Organizer and in plist file.
I'm totally confused. I have followed the instructions in my book a few times and just can't get it.
You have to create the Provisioning Profile from your Developer Center and download it to your local machine. From the Xcode menu, open the Organizer, install the downloaded provisioning profile into the Profiles area. Xcode will then link automatically for you.
Hope that helps.