Date
1 - 3 of 3
XCode Refuses To Compile
Charles Phillips
Sometimes I can see the code in the XCode window, can edit it, can Commit - but get this error message! What is going on? I have done a search or two.
error: Build input file cannot be found: '/Users/Charles/Documents/programming/experiment/experiment/main.cpp' (in target 'experiment' from project 'experiment')
Charles
Houston, Texas
Alex Zavatone
When you get that message, do you check if that file is there? If so, what is the result?
toggle quoted message
Show quoted text
On Mar 25, 2022, at 5:24 PM, Charles Phillips <phillipstriples@...> wrote:Sometimes I can see the code in the XCode window, can edit it, can Commit - but get this error message! What is going on? I have done a search or two.
error: Build input file cannot be found: '/Users/Charles/Documents/programming/experiment/experiment/main.cpp' (in target 'experiment' from project 'experiment')
Charles
Houston, Texas
Ok, I think that I just did something dumb to get myself into this situation. I was "straightening out" files and must have moved main.cpp and experiment.xcodeproj into a backup folder - instead of moving copies. I did not look carefully enough at the path as shown in the XCode window. Now I have moved both back to where they were supposed to be. And it works.
Oops.
Charles
answer was: "This sounds dumb, but in the XCode window I do see "main.cpp" but in the folder it did NOT appear! So I created a text file, pasted the code in from XCode, and saved it where it needed to be as main.cpp
Now there should be an experiment.xcodeproj in the folder above but there is not.
I swear that I built this folder from Github (Open in XCode) just as I have done many times before. I just don't know what happened this time."
Oops.
Charles
answer was: "This sounds dumb, but in the XCode window I do see "main.cpp" but in the folder it did NOT appear! So I created a text file, pasted the code in from XCode, and saved it where it needed to be as main.cpp
Now there should be an experiment.xcodeproj in the folder above but there is not.
I swear that I built this folder from Github (Open in XCode) just as I have done many times before. I just don't know what happened this time."