Install App On Iphone From Xcode

< Back to knowledge base

Can't install an app on an iOS device? Things to check

Apple doesn't provide explicit error messages when installing apps on devices. It can be quite difficult to understand what could have gone wrong.


iOS install popup did not appear

After tapping the 'Install' link on the Diawi installation page, if the iOS popup 'Diawi would like to install…' did not appear, check that you don't already have the same app installed from the AppStore.If an app with the same bundle identifier is already installed on the device from the AppStore, nothing will happen. This is a security behavior added by Apple in iOS 8+ to prevent a malicious developer from overwriting a real app with another one.

Install app on iphone using xcode

Install Xcode 7 from the Mac App Store. Download the source code for the app you want to sideload. Typically you will be able to download the entire Xcode project. I am trying to deploy my app on my iPhone. I am using XCode 6.1.1, my phone is running iOS 8.1.1 and my project target is 7.1. – Registered devices are which.

From Xcode, launch the iOS simulator: 3. Verify that the desired device is selected, in this case I am using the iPhone 7 device as shown below. If the App that you plan to install is already installed, you should delete it. Then proceed with installing the updated release. Once done, installing XCode is simple: In the Dock, find the App Store application icon and click it. Once the app has started, type Xcode in the search field located at the top-right corner. Now, click the Install button below the Xcode icon.

Delete the app installed from the AppStore to be able to install the testing one from Diawi.

Nothing seems to happen

The popup appeared, but after tapping the 'Install' button of the popup, nothing seems to happen: check the device's home screen as the installation should be in progress in the background. Since iOS 8+, app installation if performed in the background on the device's home screen and Safari doesn't show anything special, however the icon can be found on the home screen and a progress indicator shows the installation progress.

Untrusted Enterprise Developer popup

Starting from iOS 9+, the developer of an Enterprise signed app (in-house mobileprovision) has to be trusted by the user of the device, otherwise a popup will appear and prevent from using the app.

On iOS 9.0/9.1, this can be done in: Settings > General > Profiles > tap on the developer's profile, and tap on Trust.On iOS 9.2+, this can be done in: Settings > General > Device Management > tap on the developer's profile, and tap on Trust.

Unable to download app popup

If an 'Unable to download app' popup appears after some time, first check the internet connection, and be sure that the device is not behind a firewall that may prevent downloading .ipa files (as this happens a lot in enterprise firewall configurations).

Sadly, iOS won't give any detailed information on what went wrong here. As a user, Diawi provides information on the installation page about the most common checks. As a developer, a detailed list of checks can be found below.


Most common installation issues are:

  • expired provisioning profile
  • device's UDID not in the provisioning profile
  • incompatible device (minimum iOS version, device family, required device capabilities and supported architectures)
  • device has not enough space left

A few things to check as a developer

If you have uploaded an app to Diawi and can't install it on some of your devices, here are a few things to check:

  • device's UDID must be in the provisioning profile built into the app by xcode
  • device's UDID must not start with 'fffffff...' (if it is, then it is fake)
  • you are building a Release version of your app and for all architectures
  • the device is not behind an enterprise firewall preventing the download of the app

You may also try to drag&drop the app into iTunes and sync your device: it should install the app, otherwise it is not valid.

More detailed explanations

UDIDs in the provisioning profile

Apple rules regarding app installation also apply when using Diawi: if you are using a Development or Ad-hoc provisioning profile, devices' UDIDs must be added to the provisioning profile used to sign your app. In-house builds with an Enterprise Apple account don't require registering UDIDs.

Since xcode 4, the .mobileprovision file is embedded into the .app/.ipa file when compiling. When in doubt about which version has been used by xcode, you may simply unzip the .ipa file, then right-click Show package content on the .app located inside the Payload folder and look for the embedded.mobileprovision. The file can be opened with a text editor (TextMate, Sublime Text, Atom, ...): contains some XML/plist contents with the list of UDIDs.

XML/plist data inside the .mobileprovision looks like this:

Diawi displays the list of UDIDs of an uploaded app on the dashboard and on the installation page. A user can also identify its device on Diawi's webapp and a warning will then be displayed on the installation page if the user's device UDID is not inside that list.

Valid UDIDs

UDIDs are string of 40 hexadecimal characters ([0-9a-f]{40}).

Install App On Iphone From Xcode App

Device's UDID must be retrieved using iTunes or a webapp like those UDIDs are known to be valid.

For some time, it was possible to get the device's UDID using a native API provided by Apple and integrated in some apps available on the AppStore. However, this API has been deprecated in iOS 7 and instead provides a 'fake' UDID starting with ffffff.... Those UDIDs are not valid and can't be used to identify a device and install apps on it.

Built architectures


When building iOS apps, you may be targeting one or more of the available architecture (armv6, armv7, arm64). With the Debug configuration in xcode, the default setting is to build only the 'current' architecture (for faster compilation), which may prevent the app from running on other/older devices.

Current architectures and their compatibility:

  • armv6: iPhone 2G+, iPod touch 1st gen.+
  • armv7: iPhone 3GS+, all iPads, iPad mini 1, iPod touch 3rd gen.+
  • armv7s: iPhone 5+, iPad 4+, iPad mini 1, iPod touch 3rd gen.+
  • arm64: iPhone 5s+, iPad Air+, iPad mini 2+, iPod touch 6th gen.+

(Source: List of iOS devices on Wikipedia)

Xcode Install App On Iphone Without Cable


Newer devices are so far compatible with older architectures: an iPad Air, arm64, can run an armv7 built app, but not the opposite.

With the Release configuration, all the active/current architectures will be built and the app will work on all the targeted devices. As of Xcode 6/7, the default is armv7+arm64 (armv7s is not really needed: it's exclusion could be that it doesn't provide enough enhancement compared to armv7 while it might be adding extra file size).

Hi, I am new to coding. When I try to run a new simple app that I have made in xcode on my device (IPhone XR) it says 'unable to install' and gives me this error:


Unable to install 'WarCardGame'
Code: -402620383
The maximum number of apps for free development profiles has been reached.
Code: -402620383
User Info: {
DVTRadarComponentKey = 487925;
MobileDeviceErrorCode = '(0xE8008021)';
'' = (
0 DTDeviceKitBase 0x0000000119da981a DTDKCreateNSErrorFromAMDErrorCode + 233
1 DTDeviceKitBase 0x0000000119deaf70 90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x00000001009d1155 DVTInvokeWithStrongOwnership + 73
3 DTDeviceKitBase 0x0000000119deaca8 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1654
4 IDEiOSSupportCore 0x0000000119c61e91 118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4165
5 DVTFoundation 0x0000000100b047f4 DVT_CALLING_CLIENT_BLOCK + 7
6 DVTFoundation 0x0000000100b06436 DVTDispatchAsync_block_invoke + 1194
7 libdispatch.dylib 0x00007fff676896c4 dispatchcall_block_and_release + 12
8 libdispatch.dylib 0x00007fff6768a658 dispatchclient_callout + 8
9 libdispatch.dylib 0x00007fff6768fc44 dispatchlane_serial_drain + 597
10 libdispatch.dylib 0x00007fff676905d6 dispatchlane_invoke + 363
11 libdispatch.dylib 0x00007fff67699c09 dispatchworkloop_worker_thread + 596
12 libsystem_pthread.dylib 0x00007fff678e4a3d pthreadwqthread + 290
13 libsystem_pthread.dylib 0x00007fff678e3b77 start_wqthread + 15
System Information
macOS Version 10.15.4 (Build 19E287)
Xcode 11.4.1 (16137)

Unable To Install App On Iphone From Xcode

I have tried using a different apple ID but the same error comes up, I have not exported any other apps to this phone from xcode and have tried to disconnect and reconnect the device, any idea why i keep getting this message?

Any help will be much appreciated, thanks.

Install App On Iphone From Xcode Windows 10