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?
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.
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.
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....
- In Xcode, add your Apple ID to Accounts preferences
- In the project navigator, select the project and your target to display the project editor.
- Click General and choose your name from the Team pop-up menu.
- Connect the device to your Mac and choose your device from the Scheme toolbar menu.
- Below the Team pop-up menu, click Fix Issue.
- 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:
Easy:
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With