Cannot debug selected views after upgrade to Xcode 10 + Mac OS Mojave

Viewed 2149

It seems that after upgrading to Mac OS Mojave + Xcode 10 it's not possible to debug custom views on Xcode, from Editor -> Debug Selected Views menu (see screenshot)

Editor -> Debug Selected Views menu

Always receiving the same message (see screenshot):

Ensure "IBDesignablesAgent-iOS" is not already running, and 'username' has permission to debug it.

Ensure IBDesignablesAgent-iOS is not already running error

Previously Xcode asked me for entering my credentials before debugging a custom view. Now it always fails. I have the problem on two different Macs (using the same Developer account)

Is anyone experiencing the same issue?

Is there any way to troubleshoot the problem in an effective way?

What I tried at the moment, following suggestions here:

  • Restart Xcode: Done, not effective
  • Completely uninstall, delete any related file and reinstall Xcode: Done (twice), not effective
  • Edit Scheme -> Info -> Executable -> Ask on launch: Done, not effective
  • Multiple Xcode version installed: Doesn’t apply.
  • Deleting certificates from Keychain: Done, not effective
  • Delete derived data and clean: Done, not effective
  • Killing simulator: Done, not effective
  • Debug executable is enabled: Doesn’t apply.
  • Run Xcode with sudo: Done, make it worst
1 Answers

It's Apple bug and there is no workaround I know about.

I've filed bug to Apple as well. And it got marked as duplicate.

I encourage everyone who has this problem to do the same. If several people are filing the same bug report it'll indeed increase its priority by Apple internally.

Related