Can't create output files in Xcode

I am having a problem with some of the Xcode settings and nothing that I have tried has solved this problem for me.

I am a retired software guy and now only write code for my own use. Before retiring I mostly wrote C/C++ for Unix and Microsoft systems but after retirement I decided I wanted to play around with Macs, so I bought a MacBook Pro and installed Xcode. I have been using Swift and am not having any real trouble with it, but the last app I wrote for myself required that I be able to use the Save panel and write files to disc, and that is not working for me. Every time I try the system executes the Swift FileManager createFile command and fails to create the output file.

I assumed that the problem was the Entitlements setting in Xcode but regardless of the settings I use (SandBox on and the create entitlements for read/write set to on, or SandBox off) I can not create the file. With the SandBox set to Yes and the create entitlements set to No I get the proper errors. With the SandBox set to Yes and the entitlements set to Yes the code executes without any error, but the output file does not get created, and with the SandBox set to No I still can not create the file. No errors, but no output file.

Obviously I am doing something wrong with my settings and I am hoping that someone can tell me what that might be. I am pretty sure the code is correct and that this is a settings issue because I get no execution errors when the code runs.

Never mind. I got it figured out.

Can't create output files in Xcode
 
 
Q