Post

Replies

Boosts

Views

Activity

Reply to Do I need my macOS updated to Big Slur in order to use xcode 12 to target macOS arm64?
You do not need to be on Big Sur. I'm still on Catalina, and the Architectures build setting says Standard Architectures(Apple Silicon, Intel). When I build with the Release configuration, I get a fat binary with Intel and Apple Silicon versions of the app. What architectures are in your list? That may help someone provide an answer for you.
Nov ’20
Reply to Xcode New File
You have to create a new project in Xcode for each program you write. Creating a new project for each program is annoying when learning a language and writing small programs. I recommend using a text editor such as TextMate, BBEdit, or Visual Studio Code for learning C++. TextMate has a bundle that will let you run your programs from inside the editor. Visual Studio Code probably has an extension to run your programs inside the editor. I'm not sure if BBEdit has a way to run your programs from the editor.
Nov ’20
Reply to Xcode New File
When you create a new project, Xcode creates a main function for the program. If you create a new file and add another main function, you are going to get a compiler error because you have two main functions. The solution is to remove one of the main functions. The easiest thing to do is to avoid creating the main function when you create a new file.
Nov ’20
Reply to current Xcode update is too large.
For simple C++ programs you can keep using the version of Xcode you're using. You're not going to gain anything by downloading and installing the latest version. An alternative to Xcode for simple C++ programs is to use a text editor like TextMate, BBEdit, or Visual Studio Code. TextMate has a bundle that lets you run programs from inside the editor. If you use a text editor for your programs, you don't have to worry about exporting the Xcode project files. Put your source code files in a folder and open the folder in the text editor.
Nov ’20
Reply to Having trouble with Xcode
What happens when you build the new target? When you create a new target, it's going to appear red in the Products folder until you successfully build the target. If that does not fix the issue, you need to provide more detailed information for anyone to help. What kind of target are you creating? What do you mean by "the assign target buttons"?
Nov ’20
Reply to xcode tutorial
If you create a new project, you will have a "clean sheet". As long as you don't name the project FoodTracker and store it in the same location on your Mac, you will be fine. If you do call the project FoodTracker and store it in the same folder, you'll lose the original project.
Oct ’20
Reply to Command line tool?
The Command Line Tool project template is available for me when I create a new project in Xcode 12.1. When you create a new Xcode project, what project templates are available when you click the macOS button at the top of the New Project Assistant?
Oct ’20