Xcode warns about unidentified developer when running preview builds after updating to Sonoma

After updating to Sonoma I'm having a very annoying issue each time I run the code after a new edit. I confirmed this issue is present when creating a brand new project. I'm using SwiftUI.

Does anyone know how to fix this issue?

I am also having the exact same problem. I'm actively looking for a solution as well

Okay, I found a possible solution

Context:

  • Swift UI project
  • Sonoma & Xcode 15
  • Project files in document folder
  • macOS project
  • Under project settings -> Signing & Capabilities -> Signing -> Team I had it Set to NONE
  • Under project settings -> Signing & Capabilities -> Signing -> macOS -> Signing Certificate I had it Set to Sign to run locally

Solution:

  1. Switching project settings -> Signing & Capabilities -> Signing -> Team to any development ID, for me my personal team account.
  2. Switching project settings -> Signing & Capabilities -> Signing -> macOS -> Signing Certificate to Development

This has worked for me SO FAR, but hopefully it is helpful for anyone that stumbles on this.

Total noob here, trying to learn Xcode AND Swift, getting this same issue. However, trying to implement your solution, when I go to File | Project Settings in Xcode, my dialog box has nothing about Signing & Capabilities, just "Per-User Project Settings: Derived Data, Schemas (Show shared schmes automatically) and an Advanced... button. The Advanced... button just takes me to "Build Location" dialog with options of Xcode Default, Unique, Shared Folder, Custom, and Legacy. Any help would be appreciated.

Xcode warns about unidentified developer when running preview builds after updating to Sonoma
 
 
Q