mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 00:52:58 +00:00
Create support sources folder if necessary.
Make sure the the xCodeSupport/Sources folder is always present. The objj tool will fail if it's missing. The Sources folder could be missing if it's not checked into a repos for example.
This commit is contained in:
1 parent
7ccd6f842b
commit
56c0f7f6f1
1 file changed
+11
-2
@@ -460,14 +460,23 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
|
||||
[PBXContent writeToFile:XCodeSupportPBXPath atomically:YES encoding:NSUTF8StringEncoding error:nil];
|
||||
DLog(@"PBX file adapted to the project");
|
||||
|
||||
DLog(@"Creating source folder %@", [XCodeSupportProjectSources path]);
|
||||
[fm createDirectoryAtPath:[XCodeSupportProjectSources path] withIntermediateDirectories:YES attributes:nil error:nil];
|
||||
[self createXcodeSupportProjectSourcesDirIfNecessary];
|
||||
return NO;
|
||||
}
|
||||
|
||||
[self createXcodeSupportProjectSourcesDirIfNecessary];
|
||||
return YES;
|
||||
}
|
||||
|
||||
/*!
|
||||
Create the xCodeSupport/Sources folder if necessary.
|
||||
*/
|
||||
- (void)createXcodeSupportProjectSourcesDirIfNecessary {
|
||||
if ([fm fileExistsAtPath:[XCodeSupportProjectSources path]]) return;
|
||||
DLog(@"Creating source folder %@", [XCodeSupportProjectSources path]);
|
||||
[fm createDirectoryAtPath:[XCodeSupportProjectSources path] withIntermediateDirectories:YES attributes:nil error:nil];
|
||||
}
|
||||
|
||||
/*!
|
||||
Initialize the creation of the .xCodeSupport project. This
|
||||
Operation is threaded
|
||||
|
||||
Reference in new issue
Block a user