How to delete a CLion project - clion

I've been using CLion to run C++ files. Everything has gone well until today, when I accidentally created a project in the wrong folder. I deleted all of the files for the project, but for some reason, CLion still thinks the project exists. How should I fully delete the project? Thanks in advance guys.

Do you mean that when you first launch it and you see the projects on the left side that it's listed there? You can hover over it and press DELETE to remove from the project from that list.

Related

Xcode indexing does not finish

I am having a small project just for testing. After a few days of testing the "indexing process" of Xcode broke, it simply does not finish. I tried it with another project, same thing. I tried to reinstall Xcode -> Did not help, I deleted the Derived Data -> Did not help. Restarting Mac + Xcode -> Did not help. Is there anything else I could try ? Thanks for every tip, this problem really kills the dev process.
Apparently the following has worked for several people.... Hope it helps you! PS:I'm trying it right now
Open your Project Folder.
Find ProjectName.xcodeproj file.
Right-Click Copy and Paste to Safe Place.
Right-Click Show Package Contents.
Find project.xcworkspace file and delete that file.
Reopen Your Project and clean and Rebuild.
If your problem is not solved than replace the file with your backup file.
In my case, I solved that problem by just closing assistance editor and selecting another source file in Xcode. It was useless to empty /DerivedData folder, cleaning project, rebooting OS or reverting to the previous project. After closing assistance editor and selecting another source file in the project navigator, Xcode successfully completed the indexing. Before then I opened Info.plist with viewController.m source file in Assistance Editor. My Xcode version is 9.4.1.

Can't delete file in XCode from project

After updating XCode, I was unable to delete files from project.
I press "Move to trash", and nothing happenes.
I still can access to file in project tree.
How can I do that?
Maybe, I need to check some options?
Please, help me.

Xcode 4.2 Product -> Run Greyed Out

My "Run" button under "Product" is greyed out and after trying a few things from various forums, can't figure out what's gone wrong.
I've tried removing the project.xcworkspace and xcuserdata files and letting xcode generate new ones, but no...
My co-worker uses AppCode from IntelliJ and when he pulls the code, it runs just fine. But if he opens the same files in his Xcode, his "Run" is also greyed out.
"Edit" your current "Scheme":
Make sure you have "Run" checked for that build target:
The scheme need to be fixed (I don't know why xcode changed it)
Here are the required steps:
, ,
Make sure you have the correct target selected.
(Upper-left in Xcode window, near the triangular Run button.)
My co-worker who uses AppCode had edited the configuration file, moved some frameworks around, etc... We noticed that there was a difference between XCode and AppCode in using relative vs. absolute paths in the project.pbxproj file.
Ultimately I just reverted the code to before his changes, so at this stage, I'm not entirely sure which difference in the config file actually caused Xcode to not be able to Run the project.
**EDIT
From the .git logs, it looks like AppCode was adding relative directories with 7 sets of "/../" and before there were only ever instances of 5 "/../" to get back to the root directory.
Rather frustrating that Xcode had no way of dealing with this from inside the IDE.

Xcode - File not found but build successful

In my project, I've include a full "shared" folder by link (not copy) that is outside my project folder.
In the .pch file, I have #import "MyStandardHeader.h"
My Build settings does not have any search path to the "shared" folder.
In the "MyStandardHeader.h", I have #import "NSMutableArrayCustom.h" that is inside a subfolder of "shared".
I use in my code a NSMutableArrayCustom class.
I never include NSMutableArrayCustom.h
I've clean the project, quitted XCode, launched it again, build, run on both iPhone and simulator : everything works fine, but I have a red compile error: MyStandardHeader.h - No such file or directory
I've tried in the build settings Always search user pathat YES and NO, it's the same.
What is the problem? Why do I have this error? How make it disappear?
I tried the steps mentioned above, but to fix the error I had to remove the file from "Copy Bundle Resources" in the project "Build Phases".
I've seen this too: files that clearly exist get wonky. Oddly, sometimes it fixes itself. It may be an Xcode bug, since the build always succeeds. I've had success with touching the file. sometimes a clean helps. and sometimes quitting xcode helps.... Voodoo really.
You could try to remove the index by deleting everything in ~/Library/Developer/Xcode/DerivedData
That directory is a combined version of the old Build and Intermediates directories from Xcode 1,2 and 3. Basically it's all the temporary and generated files from your project: object files, indexes, etc.
Another thing to try -- just deleting Derived Data wasn't working for me, but this did:
Delete Derived Data using the Organizer window, Projects tab.
In your target settings delete the value (path) set for "Prefix Header"
Close XCode and restart. Reload your project. Let it re-index.
Restore the "Prefix Header" setting.
What a major PITA.
If deleting data and Prefix Header path doesn't work then, try to click on the File (that is not found) in the Project Navigator and uncheck the target under Target Membership in File Inspector. Then deleted the files from Project Project Navigator and add again. This is the only thing that worked for me.
Merely closing XCode (6.4) fixed my particular case of this issue. I opened it back up, cleaned the project, and built. Warnings were gone! Before I closed XCode, I cleaned and built and the warnings would not leave. So something about closing XCode did it. Hope this helps others!
I deleted the #import, then moved to a different line and used autocomplete to reenter the import. That error and all others like it disappeared. Strange bug.

Xcode project — old files warnings

I have a lot of warnings in my Xcode project about old files that have been deleted from my project and from the project's folder.
I have tried to delete the "build" folder of the project.
Any suggestions?
Thanks!
Are you, by chance, using this project from a source code repository?
You need to remove the files from the repository as well. For instance, "svn delete ".
What sort of warnings are you seeing?
In Xcode go to the Build menu and select Clean, then try to build again. Sometimes deleting the build folder is not enough.
If you explore the project do you see any file names that are red? If so, click to select them and press Delete.

Resources