I created a Metal game in Xcode. I am planning to write most of it in C, and write the user interface in Metal/Swift. However, Unlike SwiftUI, for a Metal game if I create a C file it does not automatically ask me to add a bridging header. So I research a ton, and try to add one, but it does not recognize it. Here's a screenshot. What am I doing wrong, many research efforts got me to "Add the name of the bridging header to this setting." I do it and nothing happens. What am I doing wrong, why do the other research websites lie, and what is the real way to accomplish this task?The error I get is from trying to call a C function from swift, because it does not recognise the bridging header.How can I manually create a bridging header in a Metal game
Post
Replies
Boosts
Views
Activity
I have quesions about Metal games, but why is there no "Metal" subspace in frameworks? Metal is a game framework.