I have a macOS app that when I build it in Xcode, it does not have full disk access even though I've added it to the full disk access option under security and privacy. The weird thing is that when I open the app from the derived data directory or an archived version, it has the necessary permissions. Xcode also has full disk access as well. I was previously on Xcode 11.3 and this wasn't an issue. I suspect it has something to do with updating to Xcode 12.4 as I have this issue on 10.15 and 11. I am at a total loss as to how to fix this.