I mostly do my C/C++ programming on the command line (Vim, Gdb, Valgrind, etc.), but since having used IDEs for other languages (like IntelliJ for Java, etc.), I wanted to get started using Xcode on my MacBook for developing in C/C++.
My issue is this:
So I tried this:
Is there a way to "import" a preexisting repository (that isn't set up for Xcode) into an Xcode project, so that I can use Xcode's tools and editor to work on it? (This would be a preferred solution)
-- or --
Is there a way to create a project in Xcode, but have it maintain the code in a folder outside of the nested structure that it seems to want to put them in?
Many thanks in advance!
My issue is this:
- Generally, I have a GitHub/GitLab repo setup with my source files, makefiles, etc at the root of the repo. (e.g. reponame / main.cpp)
- When I set up a new "project" with Xcode, and use Xcode's git integration to push files to GitHub, it places them in two nested folders. (e.g. reponame / Xcode_Project_name / Xcode_Project_name / main.cpp)
So I tried this:
- Create the main.cpp, etc files on the command line, and push to the git repo, so that the repo is organized with the source files at the base. (e.g. reponame / main.cpp )
- Then use Xcode's source control features to clone a repo.
Is there a way to "import" a preexisting repository (that isn't set up for Xcode) into an Xcode project, so that I can use Xcode's tools and editor to work on it? (This would be a preferred solution)
-- or --
Is there a way to create a project in Xcode, but have it maintain the code in a folder outside of the nested structure that it seems to want to put them in?
Many thanks in advance!
Last edited: