Return to site

Xcode Build To Iphone

broken image


  1. Download and install your own iPhone apps directly to your iPhone.Download the code: Watch step by step how to.
  2. Run Xcode iOS App in Real iPhone Steps. Connect your iPhone to MacOS machine with a USB line. Then in Xcode, click Product — Destination menu item in the top menu bar. Then select your real iPhone device under Device menu. Then you can click the Run button ( triangle button) at top to run the app on the target iPhone.

Go to File – Build Settings and select iOS as your build platform then click Build Now open the Xcode project you just built. In the build settings for the Unity iPhone-simulator target: 1. Make sure that architectures says 'i386'.

9 Tweaks to Speed up Xcode Builds

As projects grow, build times can become problematic. Slot games to play. However, there are several tweaks you can make to Xcode that can decrease the amount of time it takes for builds to complete without any extra work.

UPDATE: This article has been expanded to add two factors to think about when speeding up VMs. In addition, this article references Xcode 9. With reports that Xcode 11 builds are up to 50% slower, Xcode build speed has become an even hotter topic.

Increase the thread count:
By default, Xcode typically uses the same number of threads as the number of cores in the machine's CPU. However, you can dramatically reduce build times – in some instances by a full 30% - by increasing the thread count beyond the default. This takes advantage of some processors' ability to multi-thread or simulate additional cores. Keep in mind that you may need to experiment to determine if there are diminishing returns for parallelized builds with your code base, and then adjust the thread count accordingly.

Screenium 3 3 0. Enable the New Build System:
Apple's 'New Build System' is written completely in Swift and was designed for overall performance and dependency management improvements. Be aware that while the New Build System is available in Xcode 9+, it must be enabled in Xcode under Project/Workplace Settings since 'Standard Build' will be the default option. Alternatively, the New Build System can be enabled via command line (details linked below).

Disk utility mac boot. You can find more details and instructions for enabling the New Build System here:
Xcode New Build System for Speedy Swift Builds

Tweak the iOS simulator:
The Apple iOS test simulator lets you test across different software and hardware combinations (but only from a Mac). By using Physical Size or Pixel Accurate window sizes, you can reduce both the size of your tests and the time it takes for them to complete. These configuration changes use less resources and help prevent tests from slowing down simulating pixels that no one will ever see.

You can find configuration instructions here: Adjusting the Xcode iPhone simulator scale and size

Use parallelized builds:
Parallelized builds can reduce total Xcode build times by building components of the app that do not depend on each other at the same time. For projects with many smaller dependencies that can easily be run in parallel, this can offer significant time savings. Gains will obviously depend on how your code is written, but it is worth testing since parallelized builds aren't enabled by default. You can enable parallel builds by editing the Xcode Scheme and checking ‘Parallel Builds' in the build action of the scheme.

You can find more detail on leveraging parallelized builds here: When should I check 'Parallelize Build' for an Xcode scheme?

Turn on build time summary:
Build time summary enables reporting on the build times of each piece of the Xcode build. In other words, build time summary can help you identify the parts of the build that are impacting build times and further optimize the build order for overall gains. While not a fix in and of itself, the insights that build time summary provides can be useful in prioritizing efforts when trying to optimize your build times.

Bigger build machines:
This one isn't technically an Xcode tweak, but bigger build machines do have an outsized impact when attempting to speed up builds. More computing power simply translates into faster completion of processes and builds. Our testing shows that moving from a dual-core Mac mini to a 12-core Mac Pro can give a 3x speedup without any additional effort. When you're ready to upgrade or scale your Mac infrastructure, feel free to contact us at MacStadium.

UPDATE - Increase your clock speed:

With the recent Xcode 11 release, more and more builds are showing signs of single-threaded-like behavior. That is, some elements are not being run in parallel like before. In this event, hardware with more cores is not necessarily better. MacStadium is currently finding customers can complete builds faster by picking a 6-core 2013 Mac Pro, which has a 3.5 GHz clock speed over the 12-core 2013 Mac Pro at 2.7 GHz. Individual builds vary, but this a factor to check.

UPDATE - Enable caching:

Xcode now supports caching automatically as long as users do not run the Product > Clean feature before builds. This is a great improvement for local developers who are the primary audience for Apple's continued development. For teams, the caching features of Bazel make it a very attractive choice. The implementation of Bazel is not always easy, but implementing Bazel for iOS and macOS builds was the specific focus of the 2019 BazelCon. All the talks are now on YouTube.

If you're running dozens or hundreds of builds a day as part of a CI pipeline, you can improve performance by leveraging a virtualized Mac fleet. Orka, the first and only solution built for orchestrating genuine Apple hardware allows you to orchestrate many build machines using Kubernetes technology.

You can try an Orka sandbox and see for yourself how easy it is to manage a Jenkins pipeline, spin-up VMs and achieve near bare metal speeds on a hypervisor built specifically for macOS and iOS app development. Have questions? Talk to a sales engineer about how Orka can transform your Xcode build process.

Additional Resources:
Of course, these are only a few of the suggestions you can use to speed your Xcode build times. The following resources can provide additional information and suggestions on improving your Xcode build times.


This guide shows how to set up your SDK development environment todeploy Cordova apps for iOS devices such as iPhone and iPad,and how to optionally use iOS-centered command-line tools in yourdevelopment workflow. You need to install the SDK tools regardless ofwhether you want to use these platform-centered shell toolsor cross-platform Cordova CLI for development. For a comparison of the twodevelopment paths, see the Overview.For details on the CLI, see Cordova CLI Reference.

Requirements and Support

Apple® tools required to build iOS applications only run on the OS Xoperating system on Intel-based Macs. Xcode® 8.0 (the minimum requiredversion) runs only on OS X version 10.11.5 (El Capitan) or greater, andincludes the iOS 10 SDK (Software Development Kit). To submit apps tothe Apple App Store℠ requires the latest versions of the Apple tools.

You can test many of the Cordova features using the iOS simulatorinstalled with the iOS SDK and Xcode, but you need an actual device tofully test all of the app's device features before submitting to theApp Store. The device must have at least iOS 9 installed, theminimum iOS version supported since the release of cordova-ios v4.4.0.

Installing the Requirements

Xcode

There are two ways to download Xcode:

  • from the App Store,available by searching for 'Xcode' in the App Store Android phone simulator. application.

  • from Apple Developer Downloads,which requires registration as an Apple Developer.

Once Xcode is installed, several command-line tools need to be enabledfor Cordova to run. From the command line, run:

Deployment Tools

The ios-deploy tools allow youto launch iOS apps on an iOS Device from the command-line.

To install it, run the following from command-line terminal:

Download Xcode

Project Configuration

Installing Xcode will mostly set everything needed to get started with the native side of things.You should now be able to create and build a cordova project.For more details on installing and using the CLI, refer to Create your first app guide.

Deploying to Simulator

To preview the app in the iOS simulator:

  1. Open the workspace file (platforms/ios/HelloWorld.xcworkspace) from Xcode, or from the command line:

  2. Make sure the HelloWorld project is selected in the left panel (1).

  1. Select the intended device from the toolbar's Scheme menu, suchas the iPhone XR Simulator as highlighted in (2)

  2. Press the Run button (3) in the same toolbar to theleft of the Scheme. That builds, deploys, and runs theapplication in the simulator. A separate simulator application opensto display the app:

Only one simulator may run at a time, so if you want to test the app in a different simulator, you need to quit the simulator application and run a different target within Xcode.

Xcode comes bundled with simulators for the latest versions of iPhoneand iPad. Older versions may be available from the Xcode →Preferences. → Components panel.

Deploying to Device

For details about various requirements to deploy to a device, referto the Launch Your App On Devices section ofApple'sAbout App Distribution Workflows.Briefly, you need to do the following before deploying:

  1. Create a Provisioning Profile within theiOS Provisioning Portal.You can use its Development Provisioning Assistant to create andinstall the profile and certificate Xcode requires.

  2. Verify that the Code Signing Identity setting within the Code Signing sectionwithin the build settings is set to your provisioning profilename.

Xcode Build To Iphone 11 Pro Max

Ios

To deploy to the device:

  1. Use the USB cable to plug the device into your Mac.

  2. Select the name of the project in the Xcode window's Schemedrop-down list.

  3. Select your device from the Device drop-down list. If it isplugged in via USB but still does not appear, press theOrganizer button to resolve any errors.

  4. Press the Run button to build, deploy and run the applicationon your device.

Signing an App

Xcode Iphone Emulator

First, you should read through the Code Signing Support Pageand the App Distribution Workflows.

Using Flags

To sign an app, you need the following parameters:

ParameterFlagDescription
Code Sign Identity--codeSignIdentityCode signing identity to use for signing. It can be created with Xcode and added to your keychain. Starting with Xcode 8 you should use --codeSignIdentity='iPhone Developer' both for debug and release.
Development Team--developmentTeamThe development team (Team ID) to use for code signing. You would use this setting and a simplified Code Sign Identity (i.e. just 'iPhone Developer') to sign your apps, you do not need to provide a Provisioning Profile.
Packaging Type--packageTypeThis will determine what type of build is generated by Xcode. Valid options are development (the default), enterprise, ad-hoc, and app-store.
Provisioning Profile--provisioningProfile(Optional) GUID of the provisioning profile to be used for manual signing. It is copied here on your Mac: ~/Library/MobileDevice/Provisioning Profiles/. Opening it in a text editor, you can find the GUID which needs to be specified here if using manual signing.
Code Sign Resource Rules--codesignResourceRules(Optional) Used to control which files in a bundle should be sealed by a code signature. For more details, read The OS X Code Signing In Depth article
Automatic Provisioning--automaticProvisioning(Optional) Enable to allow Xcode to automatically manage provisioning profiles. Valid options are false (the default) and true.

Using build.json

Alternatively, you could specify them in a build configuration file (build.json)using the --buildConfig argument to the same commands. Here's a sample of abuild configuration file:

Airserver 7 1 4 mac torrent full cracked. For automatic signing, where provisioning profiles are managed automatically by Xcode (recommended):

For manual signing, specifying the provisioning profiles by UUID:

Xcode Build Flags

If you have a custom situation where you need to pass additional build flags to Xcode you would use one or more --buildFlag options to pass these flags to xcodebuild. If you use an xcodebuild built-in flag, it will show a warning.

You can also specify a buildFlag option in build.json above (the value for the buildFlag key is a string or an array of strings).

Debugging

For details on the debugging tools that come with Xcode, see this articleand this video.

Open a Project within Xcode

Cordova for iOS projects can be opened in Xcode. This can be useful ifyou wish to use Xcode built in debugging/profiling tools or if you aredeveloping iOS plugins. Please note that when opening your project in Xcode,it is recommended that you do NOT edit your code in the IDE. This will edit the codein the platforms folder of your project (not www), and changes are liable to be overwritten.Instead, edit the www folder and copy over your changes by running cordova build.

Plugin developers wishing to edit their native code in the IDE should use the --link flag when adding theirplugin to the project via cordova plugin add. This will link the files so that changes to the plugin files in theplatforms folder are reflected in your plugin's source folder (and vice versa).

Once the ios platform is added to your project and built using cordova build, you can open it fromwithin Xcode. Double-click to open the ${PROJECT_NAME}/platforms/ios/${PROJECT_NAME}.xcworkspacefile or open Xcode from your terminal:

The screen should look like this:

Platform Centered Workflow

cordova-ios includes a number of scripts that allow the platform to be usedwithout the full Cordova CLI. This development path may offer you a greaterrange of development options in certain situations than the cross-platform cordova CLI.For example, you need to use shell tools when deploying a customCordova WebView alongside native components. Before using thisdevelopment path, you must still configure the SDK environmentas described in Requirements and Supportabove.

Xcode Build To Iphone 6s

For each of the scripts discussed below, refer to Cordova CLI Reference for more information on theirarguments and usage. Each script has a name that matches the corresponding CLIcommand. For example, cordova-ios/bin/create is equivalent tocordova create.

To get started, either download the cordova-ios package fromnpm orGithub.

To create a project using this package, run the create script in the binfolder:

To run the app, use the run script in the bin folder:

The created project will have a folder named cordova inside that containsscripts for the project-specific Cordova commands (e.g. run, build, etc.).

To install plugins in this project, use the Cordova Plugman Utility.

Upgrading

Refer to this article for instructions to upgrade your cordova-ios version.

(Mac®, OS X®, Apple®, Xcode®, App Store℠, iPad®, iPhone®, iPod® and Finder® are Trademarks of Apple Inc.)





broken image