.xcodeproj file issue after renaming - objective-c

I tried to change project name, but after that, a warning appears saying "Validate project settings Update to recommend settings". After that, I can't execute the project, and in left project explorer appears nothing but .xcodeproj file in red. I can build the project, but I can not run in the simulator.
Please, can you help me with this?
Thanks!

Related

Remove Intellij Idea project history and settings

If (in Intellij Idea 2002.2) I try to "Open or Import" a new java project which I just unzipped after downloading it from https://start.spring.io/ and this project happens to have the same name of a project that I previously loaded with intellij but that I removed and deleted its files since then, Intellij still recognizes it as the old project and will handle it as an existing intellij project... why? and how do I make it stop?

PyCharm - File browser dissapeared

I just opened my Django project in PyCharm and I can't run server. I also don't see most of the project files unless I switch from Project to Project Files but they are yellow highlighted and it says that I can't modify them.
What is happening and how to fix it? Yesterday, I had the same problem with Vue project, now the Vue project works and Django doesn't...
EDIT deleted .idea and restarted PyCharm and now there is almost nothing.

pycharm configurations lost after closing project

When I create a Run Configuration for a project, pycharm will remember it as long as this project is opened in my IDE, or when I open it via the 'welcome to pycharm' window.
However, when I close my project and reopen it, I can’t find the config I saved before. Is there a way to find it again? Is it not saved in the .idea folder? (I'm running pycharm on mac os)
As #Eskapp said, run configurations are saved on per-project basis. If you want to share them between projects, please look at this topic: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206600965-Export-Import-Run-Configurations-

Task 'run' not found in root project '...'

I've imported a project from someone who exported it from IntelliJ.
The project is compiled with Gradle.
Here is a screenshot from is computer:
and now here is a screenshot from my computer:
I see have don't have all external libraries.
And the most important is he can run the project by clicking the green arrow on right top of the screen (as we can see on the screen)
But I can't... I tried to manually run "build" from Gradle task view. It works.
But when I try to run "run" from the Gradle task view I have an error:
The code works and all I want is just to run it... Please help, I really need to work on it...

How to import and run existing plugins from intellij community edition repo

I'm trying to import and run the IntelliJ git4idea (Git Integration) plugin in order to play around and contribute some of my own code.
I've pulled the Intellij community edition from the github repo, and imported the git4idea plugin as a project. I'm running the Intellij community edition
My main issue is this:
After importing all the modules, the git4idea module comes up as a general module type, and not a plugin module type.
This means that when trying to create a new run\debug configuration, I get [none] under "Use classpath of module", instead of of the ability to select the git4idea plugin. This obviously results in a "Run configuration error: no plugin module specified for configuration".
So the question is -
How can I change the general type of imported "git4idea" to plugin type?
Or better yet, what are the steps required in order to import and build/debug/run a plugin from the Intellij community edition repo?
I was able to solve this by manually reordering file directories, sorting out dependencies and editing the .iml file. The type of plugin is defined by changing type="JAVA_MODULE" to type="PLUGIN_MODULE".
...
This is the answer given by Dmitry Jemerov on the official Jetbrains plugin development forum:
The easiest answer to this is "don't". The IntelliJ IDEA Community
Edition project is set up to be developed as a whole, and the
dependencies are set up accordingly. If you want to hack on the Git
plugin, you simply run IDEA using the provided run configuration, it
runs with all plugins enabled, and you simply make whatever changes
you need and test them using the main run configuration.
If you really want, you can set up a new plugin module and point it to
the source code of the git4idea plugin inside the IntelliJ IDEA
Community Edition Git checkout. This is not too hard, but it's
something you'll need to do from scratch, and you can't use the
existing .iml file.
I had the same no plugin module specified for configuration issue. To work around it, instead of importing, I created a new plugin project and used the existing code directory.
when you import the intelij plugin projects
You should run the 'runIde' task in gradle.
Step-by-step instruction
Build your IDEA plugin (usually done with gradle build).
Start Intellij IDEA.
If you have any project opened, go to menu "File->Close all projects" to return to Intellij IDEA startup screen.
Install the plugin you've just built: on the left side of the "Welcome to Intellij IDEA" startup screen go to "Plugins", then click "gear" icon on the right side, it's located to the right of "Marketplace" and "Installed". From the pop-up menu select "Install Plugin from Disk...", navigate to plugin file (usually in build folder) and click "Ignore and continue" when you see the warning message saying something about signature.
Restart Intellij IDEA.
Open the folder with your IDEA plugin.
Wait until IDEA imported your Gradle project.
Put breakpoints inside your plugin code so you can debug it.
Go to menu "Run->Edit configurations".
In the "Run/Debug Configurations" window on the left side click "+".
Select "Gradle" from the pop-up menu.
On the right side change "Name" to "gradle-run-ide" (without quotes).
On the right side under "Run", inside "Tasks and arguments" field enter runIde ("i" must be capital, other letters small).
Click "OK" to save changes.
Go to menu "Run->Debug 'gradle-run-ide'".
A new, black-colored IDEA window should appear.
In this black-colored IDEA window do whatever you need to do in order to invoke methods of your plugin. When you invoke them, the first IDEA window should stop you on breakpoints you set previously.
Happy debugging.
After changing type="JAVA_MODULE" to type="PLUGIN_MODULE" in *.iml file I was getting following error -
Error running 'IdeaPlugin': Wrong SDK type for plugin module
To fix this go to -
Module Settings -> Platform settings -> SDKs.
Click on Add new SDK
Select Intellij Platform plugin SDK
For home directory select your Inetllij installation dir
Select JAVA SDK you want to use with it.
Once this is added got to Module Settings again
Module Settings -> Project settings -> project.
In Project SDK change the JAVA sdk to the SDK we just added in the above steps.
Run/Debug you plugin now.