Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Swift Run Anyway Dialog : how to correct this?

I moved a Swift project to a new drive and run it. I get this message in a dialog:

enter image description here

The original directory that the project resided in no longer exists, so clearly the scheme that was created for it is stuck looking for it, and is showing me this.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

It seems like editing the scheme is needed, but I don’t know where to start with that, or what implications it has….

When I run, it seems normal, so presumably there’s no dependency here.

>Solution :

The error is saying that the working directory for the "Authentication 2" scheme does not exist. A "scheme" is the thing that you can select by using the dropdown menu next to the run destination:

enter image description here

For example, I have a scheme called "Foo" as shown above.

I would suggest selecting your "Authentication 2" scheme, and go to "Edit Scheme…" and change your working directory to something that does exist.

The dialog that opens when you click "Edit Scheme…" looks like this:

enter image description here

You should select "Run" on the left pane, and go to the "Options" tab.

From my experiments, it seems like if you "Run Anyway", the working directory will be set to a default one (as if you did not check the "Use custom working directory" checkbox).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading