I accidentally added my project to a group, and now I can't remove it from it in xcode 4, any ideas? If I drag it out, it asks me to create a workspace...
EDIT: I reported this to apple in the bug reporter, I'll keep you guys updated
I accidentally added my project to a group, and now I can't remove it from it in xcode 4, any ideas? If I drag it out, it asks me to create a workspace...
EDIT: I reported this to apple in the bug reporter, I'll keep you guys updated
This is a project without a workspace?
Close Xcode. Back up the .xcodeproj, then right click the original and Show Package Contents. Inisde, you'll see a file called project.xcworkspace. This is a workspace created by Xcode when a project is open without a xcworkspace, and it contains this grouping information.
Move this to the trash and reopen the project in Xcode; it will generate a new, default project.xcworkspace without the grouping.
or you can just manually edit the contents.xcworkspacedata file to do this:
inside project.xcworkspace, open contents.xcworkspacedata with a text editor. remove the < Group > section from the xml and just leave the < FileRef > section intact like so:
From :
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<Group
location = "container:"
name = "New Group">
<FileRef
location = "self:ProjectName.xcodeproj">
</FileRef>
</Group>
</Workspace>
Into:
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:ProjectName.xcodeproj">
</FileRef>
</Workspace>
save it and re-open your xcode project and it would be back to normal.
You should be able to drag it out to be a top-level item in the sidebar, but you have to be very careful where you release the mouse while dragging it out -- the horizontal position where you release it determines where it ends up. If that doesn't work, you may want to file a bug