Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding XCClassDefinition to newly created group crashes app #23

Open
coduggan opened this issue Jun 10, 2013 · 1 comment
Open

Adding XCClassDefinition to newly created group crashes app #23

coduggan opened this issue Jun 10, 2013 · 1 comment

Comments

@coduggan
Copy link

Create a group with addGroupWithPath:.

Add a XCClassDefinition to that group, and when you save the project, it will crash saying:

'Error writing file at filePath: /path/to/file/MyNewClass.m, error: Error Domain=NSCocoaErrorDomain Code=4 "The folder “MyNewClass.m” doesn’t exist."

May be because in the commitFileOperations method, the file writes occur before the directories are created:

[self performFileWrites];
[self performCopyFrameworks];
[self performFileDeletions];
[self performCreateDirectories];

Maybe put performCreateDirectories first?

@jasperblues
Copy link
Member

Oops, oh dear. Yes that sounds like the solution. If off the laptop now but will do tomorrow. Sorry about the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants