I wanted to write a tool for synchronizing keyboard shortcuts between JetBrains IDEs but I cannot find the default ones. When I customize them in the IDE, a new folder keymaps is created under .tool\config which contains only the customized assignment.
However, I need to first compare the original schemes to find differences and to merge them eventually. But I cannot find them anywhere.
I looked for various *.xml files with the content like shift or ctrl or keyboard-shortcut, no results.
Do you know where they are hidden?
Check IDE_INSTALL_FOLDER/lib/resources.jar file (it's an ordinary ZIP archive).
All bundled keymaps will be located in keymaps folder inside that archive.
I have a question on how to make another WindowsForm just like an existing WindowsForm that I created earlier ?
I have a WindowsForm that has a lot of properties and buttons and stuff like that and I have to create 12 more of that form with just small modifications but I don't seem like to be able to find a way to do it every single way I tried gets me a lot of errors, I'm using Visual Basic Express 2010
So after messing around with my project files I finally duplicated the form that I wanted to and this is how I did it, after going to the project directory I found the WindowsForm file for example the Form's name was "Unknown1.vb" in Visual Basic 2010 where I created it, In the project's directory there were 3 files created for that WindowsForm they were " Login.vb " + "Login.resx" and "Login.Designer.vb" and I copied those 3 files and renamed every "Login" with "Login2" and then opened "Login2.vb" and "Login2.Designer.vb" with Wordpad and replaced every "Login" with "Login2" and saved them, and then I selected "Add an existing file" to my project and I selected the modified "Login2.vb" file and it worked like a charm !
I created 12 WindowsForms using this .
Here are the steps with pictures :
First things first we go to the projects directory and then :
Here are all the steps : http://imgur.com/a/iODcg
That is it hope this answer helps others that are looking for a way to duplicate WindowsForms.
I know its been asked already , but this time the solutions are not working for me .
I had some framework that was dragged to Xcode without copying it .
than i have removed it from desktop , and Xcode shows error that its missing . (till now ok).
So, i have removed the .framework of this file, from the frameworks folder in the project.
Now i can't add it again, because :
an item with the same name already exists
its not there,i can't find it in the project, and can't add it again.
What could i miss here ?
Also- Check your project folder. Sometimes your file doesn't get deleted out of that folder even though Xcode is showing that file not there.
If you go to the target settings for the target which included it, click on "Build Phases" and twirl open the section labeled "Link Binary With Libraries" you'll probably see it in the list of linked libraries. Simply select the old one and press the "-" button to remove it.
I tried all of the answers above but the only problem is that xcode doesn't delete the folder.
So make sure the folder is delete in the project directory.
If you just remove the reference of item, It's not really deleted item from your folder. You could go to the project folder and delete it.
click "remove the reference" and it's not deleted completely
Go to folder of your project and remove it.
I've been breaking my head trying to figure out this error. This happens when you delete a file/framework from your Xcode project. Then you try to read and you get that annoying error that the files already exists. Here i what i did.
I looked to make sure that the frameworks weren't in any of my group folders.
Go to build phases - link binary with Libraries. (You probably won't see your frameworks here here either).
I simply just dragged the frameworks underneath Link Binary With Libraries and it worked -____-
I didn't do anything else. Magic
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I would like to be able to duplicate an entire Xcode project, rename the project and the associated files without Xcode going mental, and without having to manually re-import all files to the project.
This answer is the culmination of various other StackOverflow posts and tutorials around the internet brought into one place for my future reference, and to help anyone else who may be facing the same issue. All credit is given for other answers at the end.
Duplicating an Xcode Project
In the Finder, duplicate the project folder to the desired location of your new project. Do not rename the .xcodeproj file name or any associated folders at this stage.
In Xcode, rename the project. Select your project from the navigator pane (left pane). In the Utilities pane (right pane) rename your project, Accept the changes Xcode proposes.
In Xcode, rename the schemes in "Manage Schemes", also rename any targets you may have.
If you're not using the default Bundle Identifier which contains the current PRODUCT_NAME at the end (so will update automatically), then change your Bundle Identifier to the new one you will be using for your duplicated project.
Renaming the source folder
So after following the above steps you should have a duplicated and renamed Xcode project that should build and compile successfully, however your source code folder will still be named as it was in the original project. This doesn't cause any compiler issues, but it's not the clearest file structure for people to navigate in SCM, etc. To rename this folder without breaking all your file links, follow these steps:
In the Finder, rename the source folder. This will break your project, because Xcode won't automatically detect the changes. All of your Xcode file listings will lose their links with the actual files, so will all turn red. Note: You may have to do Step 2 first, then come back to this step.
In Xcode, click on the virtual folder which you renamed (this will likely be right at the top, just under your actual .xcodeproject) Rename this to match the name in the Finder, this won't fix anything and strictly isn't a required step but it's nice to have the file names matching.
In Xcode, Select the folder you just renamed in the navigation pane. Then in the Utilities pane (far right) click the icon that looks like dark grey folder, just underneath the 'Location' drop down menu. From here, navigate to your renamed folder in the finder and click 'Choose'. This will automagically re-associate all your files, and they should no longer appear red within the Xcode navigation pane.
In your project / targets build settings, search for the old folder name and manually rename any occurrences you find. Normally there is one for the prefix.pch and one for the Info.plist, but there may be more.
If you are using any third party libraries (Testflight/Hockeyapp/etc) you will also need to search for 'Library Search Paths' and rename any occurrences of the old file name here too.
Repeat this process for any unit test source code folders your project may contain, the process is identical.
This should allow you to duplicate & rename an Xcode project and all associated files without having to manually edit any Xcode files, and risk messing things up.
Credits
Many thanks is given to Nick Lockwood, and Pauly Glott for providing the separate answers to this problem.
Duplicating an Xcode 4 Project
Renaming xcode 4 project and the actual folder
I'm posting this since I have always been struggling when renaming a project in XCode.
Renaming the project is good and simple but this doesn't rename the source folder. Here is a step by step of what I have done that worked great in Xcode 4 and 5 thanks to the links below.
REF links:
Rename Project.
Rename Source Folder and other files.
1- Backup your project.
If you are using git, commit any changes, make a copy of the entire project folder and backup in time machine before making any changes (this step is not required but I highly recommended).
2- Open your project.
3- Slow double click or hit enter on the Project name (blue top icon) and rename it to whatever you like.
NOTE: After you rename the project and press ‘enter’ it will suggest to automatically change all project-name-related entries and
will allow you to de-select some of them if you want. Select all of
them and click ok.
4- Rename the Scheme
a) Click the menu right next to the stop button and select Manage Schemes.
b) Single-slow-click or hit enter on the old name scheme and rename it to whatever you like.
c) Click ok.
5 - Build and run to make sure it works.
NOTES: At this point all of the important project files should be renamed except the comments in the classes created when the project
was created nor the source folder. Next we will rename the folder in
the file system.
6- Close the project.
7- Rename the main and the source folder.
8- Right click the project bundle .xcodeproj file and select “Show Package Contents” from the context menu. Open the .pbxproj file with any text editor.
9- Search and replace any occurrence of the original folder name with the new folder name.
10- Save the file.
11- Open XCode project, test it.
12- Done.
EDIT 10/11/19:
There is a tool to rename projects in Xcode I haven't tried it enough to comment on it.
https://github.com/appculture/xcode-project-renamer
As of XCode 7 this has become much easier.
Apple has documented the process on their site:
https://developer.apple.com/library/ios/recipes/xcode_help-project_editor/RenamingaProject/RenamingaProject.html
Update: XCode 8 link:
http://help.apple.com/xcode/mac/8.0/#/dev3db3afe4f
I am using this script after I rename my iOS Project. It helps to change the directories name and make the names in sync.
http://github.com/ytbryan/rename
NOTE: you will need to manually change the scheme's name.
I'm using simple BASH script for renaming.
Usage: ./rename.sh oldName newName
#!/bin/sh
OLDNAME=$1
NEWNAME=$2
export LC_CTYPE=C
export LANG=C
find . -type f ! -path ".*/.*" -exec sed -i '' -e "s/${OLDNAME}/${NEWNAME}/g" {} +
mv "${OLDNAME}.xcodeproj" "${NEWNAME}.xcodeproj"
mv "${OLDNAME}" "${NEWNAME}"
Notes:
This script will ignore all files like .git and .DS_Store
Will not work if old name/new name contains spaces
May not work if you use pods (not tested)
Scheme name will not be changed (anyway project runs and compiles normally)
In the example code for the book "Instant OpenCV for iOS" I have found a bash script that copies a project from a folder to another.
Doing a little research I've found a blog post from what seems to be the original author of the script: http://mohrt.blogspot.it/2009/01/renaming-xcode-project-from-command.html, where you can download the script. I gave it a try and running it from terminal like this
sh renameXcodeProject.sh <name-of-existing-folder> <name-of-folder-to-create>
works fine.
Additional info can be found opening the file with a text editor. Hope that helps
I using Xcode 6+ and I just do:
Copy all files in project folders to new Folders (with new name).
Open *.xcodeproj or *.xcworkspace
Change name of Project.
Click on schema and delete current chema and add new one.
Here is done, but name of window Xcode and *.xcodeproj or *.xcworkspace still <old-name>. Then I do:
pop install
Open <new name>.xcworkspace
One more thing to try!
When I copied all of my files, opened the project, and renamed it, everything changed to my new project name except for the test target! I got a linker error that said I was missing a file called "myOldProjectname.app". Here's what fixed it:
Click on your project settings and select your test target
Click on build settings and search for "test host"
Check those 2 file paths. Chances are that those 2 paths are still pointing at your old project name.
Hope that helps!
For anybody else having issues with storyboard crashes after copying your project, head over to Main.storyboard under Identity Inspector.
Next, check that your current module is the correct renamed module and not the old one.
I'm not really sure how to google this one . I would like to know how would I add an entry to the right click menu in a Windows system . Something like "Open with ..." or "Archive with ... " . I would preffer a solution that works under Windows XP .
in the registry, HKEY CLASSES ROOT houses the stuff you need.
specifically
(any file)
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers
(any folder)
HKEY_CLASSES_ROOT\Directory\shell
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers
The old nvidia rightclick on desktop feature would remove the "new" from folders when you uninstalled the driver. So I had to figure out how to restore it.
Good luck.