Xcode unable to find custom info.plist file

Hello, New to swift ui and xcode. I am building a mobil app that will need bluetooth capabilities. When I make my custom info.plist file and set "Generate info.plist file" to No, it states it cannot find my file. Then when I set that to "Yes" it gives me an error stating that there are multiple versions of the file. In my editor I cant seem to set a path to it either. Any help would be greatly appreciated.

this is the result when the the section is set to No

Cannot code sign because the target does not have an Info.plist file and one is not being generated automatically. Apply an Info.plist file to the target using the INFOPLIST_FILE build setting or generate one automatically by setting the GENERATE_INFOPLIST_FILE build setting to YES (recommended).

this is when its set to yes:

Multiple commands produce '/Users/thatcherdeyoework/Library/Developer/Xcode/DerivedData/SwiftUI-weather-etzagqgbgkjotzenbomwvkhjfhzt/Build/Products/Debug-iphoneos/SwiftUI-weather.app/Info.plist'

Same here. I had some success earlier with creating my own, deleting the devridata for the project first, create new info.plist. Started a new app and no longer can do that. I have removed Xcode from machine, cleaned all remaining Xcode remnants out, and reinstalled several times from Apple and the store with no luck. I have been searching for answer, other than using storyboard to create the app.

I think I found a solution. Hope it works for you. Go into the Build Settings. Click on 'All' and 'Levels', search for INFOPLIST_FILE, it should be under packaging. Hold 'Option' down and double click on the info.plist to make sure it says INFOPLIST_FILE. Then to the right where the values are, again, hold option, and double click. This will open up a dialog box, enter your location for the info.plist. Next, go to Bundle, click on Copying, if the info.plist is there, highlight it, delete it using the +/- buttons. Next go into the ~Library/Developer/Xcode/DeriveData/ delete the project folder you are working on. Then in Xcode, Product, clean and build. And run. This worked for me. Hope it works for you. Good luck.

Xcode unable to find custom info.plist file
 
 
Q