xcode

How to remove error: the replacement path doesn't exist in Xcode


I deleted an old project from my Mac. Now in my current project, which has no connections with the old, I get a message:

error: the replacement path doesn't exist: "/path/to/old/project"

when I run on my iOS device.

  1. How is it possible? These two projects have never had any relations.
  2. How to fix it?

Solution

  • Ok, I made some investigation.

    First solution

    First and lazy solution - you can turn off the "debug executable" option in your scheme:

    screenshot of the first solution

    Second solution

    Actually, you can find some files under your ~/ directory, they are hidden, so you should use command + shift + . to see them:

    screenshot of files

    .lldbinit and (maybe a little different) .lldbinit-tulsiproj in my case, I think, it was connected because a building of Telegram.app and little touch a Bazel thing https://bazel.build/

    ... so, just delete them both and you are happy with a clear debug console!