I remember having trouble making a Swift UI for my C app because I forgot to disable sandboxing in Xcode project settings. Spent a frustrating two hours debugging