Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy an iphone app from xcode to iphone

Tags:

I am doing a school project and I am required to deploy an iphone app to my phone. I have some really noob questions to ask. I have tried to read some solutions from this website but I dont understand! like from these questions: iPhone app minus app store and How can I deploy an iphone application from xcode to real iPhone device.

Can anyone here give me an easier way to understand please?

like image 685
LUS Avatar asked Feb 23 '11 14:02

LUS


People also ask

Can I run an Xcode app on my iPhone?

Setting Up to Run Xcode On a Real Device Before you test your mobile app on an actual iOS device, you need to make sure that everything in your Xcode project is configured properly. Then you'll be able to run the app on an iPhone without having to write any extra code.

How do I publish an app from Xcode to the App Store?

In Xcode, select Generic iOS Device as the deployment target. Choose Product from the top menu and click on Archive. The Xcode Organizer will launch, displaying any archives you've created in the past. Make sure the current build is selected and click on Upload to App Store in the right-hand panel.


2 Answers

My fuller answer with pictures is available here.

With Xcode 7 for an iOS 9 target device there is now free provisioning. You don't have to sign up for the Apple Developer Program in order to test an app on a real device.

Summary from the Apple docs:

If you don’t join the Apple Developer Program, you can still build and run your app on your devices using free provisioning....

  1. In Xcode, add your Apple ID to Accounts preferences
  2. In the project navigator, select the project and your target to display the project editor.
  3. Click General and choose your name from the Team pop-up menu.
  4. Connect the device to your Mac and choose your device from the Scheme toolbar menu.
  5. Below the Team pop-up menu, click Fix Issue.
  6. Click the Run button.

When you run your app on a device, you will also have to trust the developer first. On your device go to Settings > General > Profile > developer account name > Trust.

Related articles:

  • Xcode 7 allows anyone to download, build and ‘sideload’ iOS apps for free
  • iOS Untrusted Developer error when testing app
  • iOS9 Untrusted Enterprise Developer with no option to trust
like image 22
Suragch Avatar answered Oct 07 '22 15:10

Suragch


Easy:

  • Sign up for an iOS Developer account. This includes signing up for an Apple ID, enrolling as an Apple developer, then opting that dev account into the Developer Program. That link walks you through the process.
  • Hook up your device to your machine and look at it in the Xcode organizer (Window > Organizer).
  • Tell Xcode your want to use it for development.

I believe Xcode will now help you out more than it used to. If it doesn't, then Apple has step-by-step instructions. In short, you need to:

  • Use Keychain Access to generate a CSR (certificate signing request)
  • Submit that to Apple via the dev portal
  • Download the resulting development signing certificate and install it along with Apple's intermediate certificate in your keychain by double-clicking on the files.
  • You then need to create a provisioning profile.
  • Add your device ID to it.
  • Download it and stick it on your device, e.g., by dragging it to your device in iTunes.

Then, you can build and run your app on the device. It's a pain to explain, but pretty easy to feel your way through once you get started.

like image 90
Jeremy W. Sherman Avatar answered Oct 07 '22 16:10

Jeremy W. Sherman