Post

Replies

Boosts

Views

Activity

Reply to Message "Expected '}' at end of brace statement"
Even if I haven't found a solution to the error, the code itself was wrong. Here's the solution. var question = "HELLO" let lowerQuestion = question.lowercased() func responseTo(question: String) -> String {     if lowerQuestion.hasPrefix("hello") {         return "Hello there"         } else {             return "That really depends"     } }
Jul ’22
Reply to git untracked
@Paradigm777 Hi. I’ve checked everything and still get error. I’m starting to think the error resides in how I set up everything (I don’t know much about git but I’m currently learning about it) At first I didn’t set any repository or whatever. I added my account in Xcode settings (with a token). I clicked on  « add a git repository » which I searched in the help research bar. After that, in the source control panel, I went to remotes, and clicked « add a new remote« which made the repository appear on my GitHub. i still had the untracked message. Do you notice anything wrong ? Was I supposed to set a local repository too ? Should I have first created the repository on GitHub then push the changes from Xcode project to it ?
Nov ’23
Reply to Xcode predictive code completion model never finishes downloading
@Claude31 You're right that it requires macOS Sequoia and an Apple Silicon Mac. If I didn't have one, I wouldn't have had the option to download the model. The model is around 2,2 gb. The issue is that with 5 mb/s, I can't get past 20 minutes of download until I get the error in the screenshot,. I hope a DTS Apple engineer will see this and give us some insight on whether it's because I'm on a hotspot, and if they'll implement a progress bar in future betas 👍
Jul ’24