Xcode "Could not launch". Only reports "Security" as error

25,980

Solution 1

Apparently after upgrading the OS and such you must manually launch the app on the device and say that you trust the developer of the software.

That error message disappeared now.

Solution 2

Using xcode 7 with an iOS device running version 9.2, I had to:

  1. Open 'Settings'
  2. Tap 'General'
  3. Tap 'Device Management'
  4. Tap 'Developer App' that's in the list
  5. Tap 'Trust (developer name)'
  6. Tap 'Trust' in the popup

The app should load and launch when you run xcode.

Solution 3

I just got this issue running on an iOS 8 device for the first time as it required me to launch manually on the device (it copies it fine but doesn't launch it) and then state that I trust the developer.

Solution 4

I had the problem of not having the app on my device, so I couldn't manually launch it to accept the prompt. For me, I got this to work after deleting all expired provisioning profiles from my device, which forced Xcode to install a new one.

After this, I was able to get my app to run.

Solution 5

I had the same issue solved like this:

It can be happen because your developer profile is not assigned as TRUSTED in your phone or watchos settings.

You can set your profile as TRUSTED as below:

  • Go to Settings,
  • Profile
  • Assign your profile as Trusted there.
Share:
25,980

Related videos on Youtube

GusOst
Author by

GusOst

Updated on January 21, 2022

Comments

  • GusOst
    GusOst over 2 years

    I've edited the app name out. Other than that the dialog is exactly like this. I'm developing an enterprise app and I've tried restarting xcode and the iPhone I'm developing on. No change. Anyone encountered this? Are there any log posts that could point me in the right direction or get me more details. There is nothing in the regular log from what I can see.

    Could not launch

    Update

    Found this in the device log:

    <Warning>: Unable to launch com.bundleID.etc because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.

    Which is a bit weird since it worked yesterday and all profiles etc. were issued a week ago.

    • capikaw
      capikaw over 9 years
      I seriously tried to click the OK button a few times :|
    • Kiran P Nair
      Kiran P Nair about 3 years
      It happened when my iPhone is in offline. When I clicked the app it shows an alert like Title: "Unable to Verify App" . Description: "An internet connection is required to verify trust of the developer "About the certificate" . This app will not available until verified." This means we need an online connection to verify the app'
  • GusOst
    GusOst over 10 years
    The "has not been explicitly trusted by the user" part of the device log made me think. Then I just poked around for a bit and when opening the app asked for consent. I remembered the "explicitly trusted by the user" part and thought that might be it. It was.
  • Dylan
    Dylan about 10 years
    The "failed to get the task for process XXX" is likely because you are using an Enterprise provisioning profile (or a Distribution provisioning profile) and not a Developer provisioning profile.
  • Ricardo Sanchez-Saez
    Ricardo Sanchez-Saez over 9 years
    This method stops working if you delete and reinstall the app (which is sometimes needed for clearing all caches, etc.). As perk @Mark answer, deleting all your phone provisioning profiles is a more permanent solution.
  • levibostian
    levibostian over 8 years
    For me, uninstalling the app from device, doing the above, then installing the app worked for me.
  • V-SHY
    V-SHY about 3 years
    ya, this need to be set at iphone manually and the hints will be displayed when you click on the app in iPhone
  • Andy Weinstein
    Andy Weinstein over 2 years
    I think I needed to do both this and the answer below about Trusting
  • Adam Smaka
    Adam Smaka over 2 years
    @AndyWeinstein yeah but the latter one is obvious