Default Accidentals
Set all notes to display accidentals according to the current key signature.
Change how accidentals appear in a score in Logic Pro — Apple Support
By default, the display of accidentals depends on the chosen key signature. Using note attributes, you can change flats to sharps, and vice versa. For information about setting the key signature, see Add key and time signature changes to a score in Logic Pro.