How can I rename a .app file? - xcode

I have created a project by duplicating an existing project and renaming the project and schema. Can I rename the .app file from within Xcode?
I already have try this RENAMING TUTORIAL from Apple but it didn't rename my folders and my .app file.

I finally found the solution:
Build Settings -> Packaging -> Release Name

Double click your Project name and rename your project. Note that it will rename your application name and product name not folder name on physical drive.

Related

Xcode add reference to files instead of copy

I have created my framework that i want to add in my project. What i do is:
In my project i chose Xcode -> File -> Add Files to..
In prompt window i go for framework directory, chose .xcodeproj file
Check "Copy items if needed" and "Added folders - Create groups" radio button
What i expect - .xcodeproj that contain my framework is added and copied to my project
What i got - i can see file in Xcode, but not in folder when my app exist. So, when i try to Delete -> Move to trash my framework, it delete it in folder when it was created (not my project folder).
I can't figure out how to actually add and copy file instead of reference to it.

Renaming the folder which contains my .csproj file

so I’ve been trying to rename a old project that I had been working on but every time I rename the folder that contains my csproj it won’t load and asks to load the the file with the folder name
My old project was Metroloader/Metroloader.csproj
The thing I want to change it to is Nutsloader/Nutsloader.csproj
Close Solution
Rename folder
Open solution
Remove not loaded project from solution
Add existing project from new location:
You need to edit .sln file and provide correct folder path to your renamed .csproj

The file is not under version control

I'm using a Git. When I add a file and check "Copy items into destination group's folder (if needed)" this error occurs:
Try adding it to your project folder and then drag-and-drop to the project in Xcode.
If it still doesn't work you can just create a new file in the project itself, call it the same as the file you are trying to copy and then copy-paste all the code.
Hope it helps
Just delete the file reference from the XCode. Make sure not move file to trash. Then add the file again by drag and drop or by Add file to project option. Now the file will be under source control.

Xcode - Dealing with folders by code

When you add a folder that contain subfolders and files to the Xcode project, the Xcode ask you about the folder option:
Create groups for any added folders.
Create folder references for any added folders.
I want to download the folder from a server. When the download is complete, the folder option will be 1 or 2? How can I set the folder option to option 2?
When Xcode references a folder, it uses whatever files are stored at that location on your local disk. If you download a new file to that folder or copy a file into that folder, it will show up in your Xcode project. If you change a file in that folder (by overwriting it in the Finder, or by using another app to download another copy of the file over the existing one), Xcode will use the new one.

store folders in package contents (bundle resources) in xcode 4.0

I need to store a folder in the package contents, not all files in the project all in one root folder.
How can I do this in XCode 4.0?
Right now I am going to the Build Phases > Copy Bundle Resources to attempt these changes.
Create your folder in the filesystem, then drag it to the resource folder in XCode. In the following dialog select create folder reference for any added folder. The folder should be blue. This folder is copied to your bundle with its contents.

Resources