Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 App installation failed, unknown error occured

Tags:

xcode

ios

xcode8

Error message[1]

The following error occurred when I tried to run a project on my iOS device. Running it on a simulator works fine.

The other weird thing is that I am able to run my other projects on my device, only this particular project that is giving me this error.

I tried all the solutions I'm able to find:

  1. Cleaning the project, deleting derived data
  2. Restarting Xcode, my Mac, and my iOS device
  3. Deselect 'Automatically manage signing' in the testing Target.
  4. I couldn't delete the app from my device and re-install it because it wasn't installed on my device before.

Any help would mean alot to me! I am using Xcode 8.1 with Swift 3.0, running on a iOS 10.1.1 device.

like image 356
Chan Jing Hong Avatar asked Dec 13 '16 11:12

Chan Jing Hong


People also ask

What version of Xcode does SameSame fail?

Same failure occurs on Xcode 11.2.1 and Xcode 11.3 beta. App debugging on SImulator works fine. This is not reporting a codesign or provisioning failure (I've seen those in the past).

Is my iOS app not code signed correctly?

@Dnyanesh_iOS -- It looks like your app isn't code signed correctly. Can you check your build settings and especially any post-build scripts you may have that could modify the resulting binary in anyway.

How to force the app to install immediately?

To force the app installation immediately, you can manually trigger the sync action from the client device. You can launch Settings app, and choose Accounts - Access work or school, click the account, and choose Info. You can click the Sync button.

What is the error code for nameofmyapp?

Details Unable to install "NameOfMyApp" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620415 -- An unknown error has occurred.


2 Answers

  1. Close your Xcode completely from currently running on Dock
  2. Unplug your iDevices cable at your Mac and plug again.
  3. Open Xcode Again.
  4. Clean,Build and Wait for indexing the device
  5. Delete the previous app you install on your iDevice
  6. Then install

If you have free Developer ID, make sure you got the Internet access right on your iDevices.

Else,

  1. Check your provision profile or certificates of your app that it's still available or not [Expire or not].
  2. If expired, please create again.
  3. Install those latest provision profile at your Xcode Preferences/Account/Detail/
  4. Make sure Signing "Debug" and "Release" aren't empty
  5. Close the Xcode(Completely quit from Dock) after you completed those steps
  6. Open the Xcode again and do Clean,Build and Install

Hope this help.

Other alternative way,

  • Remove the app on the device and re-install
  • Change build version no and install again
like image 173
Thiha Aung Avatar answered Sep 18 '22 11:09

Thiha Aung


Clean your the project and reattach your device

like image 43
Vaibhav Thakre Avatar answered Sep 18 '22 11:09

Vaibhav Thakre