I'm trying to setup a GitHub repository for a project that will involve the use of an API Key. In order to keep that key a secret, I have decided to make a .xcconfig file with the API Key and add the .xcconfig file to my .gitignore. So far I have linked the file with my build settings for the app target. But I'm not actually sure how to go about calling the variable in my swift code. I know that there are environment variables within the Xcode build schemes, but I'm not sure how you would call them from there either. Is there some kind of framework that I need to call? Nothing online seems to be pointing to linking to the actual file itself.
Post
Replies
Boosts
Views
Activity
im wanting to make apps for my Mac. I’m not interested in making a profit or uploading to the App Store at the moment and I’m just looking for a hobby. I’ve been learning swift through the “learn to code” games in swift playgrounds, and I feel like I’m ready to take on Xcode and app making. So far I have been experimenting with SwiftUI and a few other external libraries. But I still don’t feel like my skills are best developed yet. Which platform should I use to further advance my skills?
I want to try continuing with macOS, but I feel like there aren’t enough resources and tutorials available for it. And I know that there are boatloads of resources for iOS, but I currently can’t afford to enroll in the apple developer program, which leaves me locked out and restricted in how much I can do.
I'm trying to work with the predicate editor because it's a major part of an app I'm trying to make, but for some reason. It keeps appearing wrong
It looks like this after I build it:
This is how it appears in the Interface Builder:
Was there a step that I missed? Is there some sort of code that needs to be added first? I'm fairly new with swift but I have been playing around with the interface builder for a little while so I sort of understand it.