Xcode Build To Iphone

broken image


Learn, Build, and Innovate Build apps. Build your future. Whether you're a first-time coder or an experienced developer looking to integrate the latest Apple technologies into your app, take advantage of free online resources to learn how to create apps with Swift and a variety of events and programs around the world. B2i (previously xcode-build-to-device ) Please note: Titanium 3.2 will allow you to build to an iPhone or iPad device directly. Final note: I will continue support until 2014 to 2015. You should use the Titanium CLI and/or TiStudio/AppcStudio long term. This humble script will build your Titanium app directly to an iPhone.

For iOS Apps

There are two cases which you want to distribute your applications outside the App Store:

  1. Testing Purpose: Before releasing your apps, you would want to test them as much as you can. Thus, you would want to distribute your apps to users (testers) by various ways besides the App Store.
  2. In-house Applications: The applications are made for internal uses (in a company or organization) only.
For in-house distribution, you will need to have an Apple Developer Enterprise Program account.

The differences between Apple Developer and Apple Developer Enterprise programs regarding apps distribution:

Apple Developer ProgramApple Developer Enterprise Program
Beta OS ReleasesYesYes
Ad Hoc DistributionYesYes
App Store DistributionYesNo
In-house DistributionNoYes
TestFlight Beta TestingYesNo
Team ManagementNoYes
App AnalyticsYesNo

For more information about the differences between the two programs, please refer to Choosing a Membership.

There are two ways to distribute your pre-release apps for testing:

Build
  1. using App Store Connect: it's required iOS Developer Account and takes time since it needs approval from Apple Review prior to the distribution.
  2. using Ad Hoc distribution: it can be done with either iOS Developer and iOS Developer Enterprise accounts. Plus, it doesn't require the approval from Apple Review.

In-house distribution is to securely distribute your iOS apps to your employees. In other words, you can distribute your app to any company devices. However, if you want someone outside of your company to test your app or restrict distribution to specific devices, you can use Ad Hoc distribution.

Ad Hoc distribution is to distribute your apps using Ad Hoc provisioning profile to registered devices up to 100.

Both types of distribution have the same ways for app installation. The difference is the provisioning profile.

Xcode Build To Iphone Backup

There are several ways you can install your applications outside the App Store as shown in the following sections.

Install using Apple Configurator 2 (Mac Only)

  1. Install Apple Configurator 2 on your Mac from the App Store.
  2. Connect your device to your PC.
  3. Open Apple Configurator 2, select your device. If you device doesn't appear here, please make sure that your device is successfully connected to your Mac.
  4. Click on Add button and select App option.

  5. Select Choose from my Mac button and browse the .ipa file. Then, the app will be installed on your device.

Install using Xcode

You can install your iOS app (.ipa file) via Xcode as follows:

  1. Connect your device to your PC.
  2. Open Xcode, go to Window → Devices .
  3. Then, the Devices screen will appear. Choose the device you want to install the app on.
  4. Drag and drop your .ipa file into the Installed Apps as shown below:

Install using iTunes

iTunes 12.7 for Mac was released on Tuesday with a major change in the app. Apple has redesign iTunes so that it focuses on sales of music, movies, TV shows, audiobooks, and podcasts. It no longer has an App Store for buying apps for your iPhone or iPad. Therefore, you can no long install your iOS App (.ipa file) through iTunes any longer.

Download Xcode For Ios

  1. Build your application with with debug or ad-hoc build. For moredetails about iOS build process, please refer to Building an iOS App.
  2. Download the .ipa file after the build completes.
  3. Open iTunes, go to App library.
  4. Drag and drop the downloaded .ipa file into the App library.
  5. Connect your device to iTunes and go to your device apps.
  6. Click Install button of the app and click Sync button. See the example below:

Install using OTA Deployment

OTA (Over-The-Air) Deployment enables you to install your built apps via HTTPS.

  1. Build your application with either debug, ad-hoc or in-house build. For moredetails about iOS build process, please refer to Building an iOS App.
  2. Download the .ipa file after the build completes.
  3. Upload the .ipa file to the site you want.
  4. Create a .plist file for this built application. The .plist file should look like this:

    While creating .plist file, please pay attention to these points:
    • .plist file must be accessed via https protocol.
    • update bundle-identifier with the App ID.
    • specify correct path to the .ipa file.
  5. Upload the .plist file to the site you want. Make sure this filemust be accessed via HTTPS protocol.

  6. Create a webpage embedded the link to the uploaded .plist fileusing special itms-services:// protocol. See blow example:

  7. After you get the link, use your device to access the link. Then,you will be prompted to install the application. See below example:

For Android Apps

There are two cases which you want to distribute your applicationsoutside the offical markets such as Google Play Store, Amazon AppStoreand so on:

  1. Testing Purpose: Before releasing your apps, you would want to testthem as much as you can. Thus, you would want to distribute yourapps to users (testers) by various ways besides the officialmarkets.
  2. Personal/Internal Purpose: The applications are made for your ownpersonal uses or just for internal uses.

Install using ADB command

ADB (Android Debug Bridge) is a tool enabling you to use variousterminal commands to your phone.

Prerequisite:

  • install Android SDK on your computer
  • locate the ADB path after Android SDK installation
  • enable USB Debugging and allow installation of apps from sourcesother than the Play Store on your device.

In order to install your built app via ADB command:

  1. Build your application with debug build. For more details aboutAndroid build process, please refer to Building for Android.
  2. Download the .apk file after the build completes.
  3. Plug your device via USB to your computer.
  4. Run below command on your computer in command window. Make sure touse the correct path to your .apk file.

Install using Direct Link

This is simply an installation through direct link to your .apk file:

  1. Build your application with debug build. For more details aboutAndroid build process, please refer to Building for Android.
  2. Download the .apk file after the build completes.
  3. Upload the downloaded file to any sites you want.
  4. Go the link of the uploaded file from your device. Then, you will beprompted to install the applicaiton.

    Please make sure make these settings on your device beforehand:
    • enable USB Debugging.
    • allow installation of apps from sources other than the Play Store.

See Also:

There are some features of iOS apps that don't work from the iOS simulator. Maybe you want to test how your application works with the device camera or send an SMS message from your application. Video pro com. For these examples and more you'll need to test and debug your app using a real device.

This post will walk through how to run the Xcode simulator on your iPhone or other iOS device and show you how to fix some common errors you'll see along the way.

How to select your iPhone as the 'Simulator' Device

Simulator is in quotes here since this will create an actual app on your phone; it's no longer a simulation. Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen.

Xcode Build To Iphone 11 Pro Max

Plug your iPhone into your computer. You can select your device from the top of the list.

Unlock your device and (⌘R) run the application. You'll see Xcode install the app and then attach the debugger. The application should pop up on your phone.

Troubleshooting Common Errors

The first time I tried to connect my iPhone to Xcode it didn't work. According to my best friend, Stack Overflow, I'm not the only one who has had issues. Let's share the fixes to some common errors you might encounter.

'Signing Requires a Development Team'


Xcode requires that you've connected a Team to your project in order to run the simulator on a device. You can do this from the 'General' tab of your Project Settings. As of Xcode 7 this can be any Apple ID.

Open the Team menu that currently says 'None' and select your team. If you don't have a team, select 'Add an Account…' and create one with your Apple ID.

Xcode claims your device is locked when it isn't

This fun bug has been happening since at least Xcode 6. There are a lot of potential solutions in this Stack Overflow post. Here's what worked for me:

Xcode Build To Iphone Passcode

  1. Unplug your iPhone
  2. Reset Location & Privacy on your iPhone. Found under Settings >> General >> Reset
  3. Plug in your iPhone
  4. Hit Trust when prompted to Trust This Computer

You can learn more about how trusting computers works from Apple's support.

'iPhone is Busy'

Call of duty 1 levels. The unsatisfying answer for this one is to just wait.

If you don't have a sword fighting partner, you can try the following:

  1. Unplug your device
  2. Restart both Xcode and your iPhone
  3. Plug in your device

That worked for me, but a lot of folks had luck with 'Solution #3' from this Stack Overflow post.

Activate your Debugging Superpowers

The Jasonette docs FAQ has some more tips if you have other related issues. Now that you've got your application running on a device you can make the most of your testing and debugging experience with these tips:

If you have any questions or run into any other issues, feel free to reach out to me on Twitter @kelleyrobinson.





broken image