I have a unique issue, where Xcode picks up the wrong info.plist file when compiling. I have two targets, one is in the release version and the other is in the beta configuration(scheme). We have different files in the app bundle, which are used based on the target and also the build configuration.
When I am running the beta configuration, it runs fine, but when I try to run the release version of the application, xcode still picks up the beta build configurations.
I have tried various ways to change the plist file, deleted the files,added them again, edited the build phases, edited the build settings in the copy bundle resources. Closed xcode and also the simulators. I donot know what I am missing in these.
I have also made sure only one info.plist file is associated with one target. The targets shows the correct info while checking, can you please help me with this. The problem occurred during merging of two code versions.
Update:
I went ahead and deleted the info.plist file, which shows up in both the targets, but all I receive is an error while compiling info.plist utility error. It is pointing the plist file, which I deleted. The info, build settings, show the correct plist files
Update 2
I went ahead and also changed the files, changed build settings, packaging files, but still the target picks up the other file. Any way to fix this?