Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfdef6d3

Browse files
author
Jim Puls
committed
Use the right extension.
1 parentb601eaf commitfdef6d3

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

‎Shared/CGUCodeGenTool.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ + (int)startWithArgc:(int)argc argv:(const char **)argv;
7979
if (searchURL) {
8080
NSDirectoryEnumerator *enumerator = [[NSFileManagerdefaultManager]enumeratorAtURL:searchURLincludingPropertiesForKeys:@[NSURLNameKey]options:0errorHandler:NULL];
8181
for (NSURL *url in enumerator) {
82-
if ([url.pathExtensionisEqualToString:@"xcassets"]) {
82+
if ([url.pathExtensionisEqualToString:[selfinputFileExtension]]) {
8383
[inputURLsaddObject:url];
8484
}
8585
}
@@ -131,7 +131,7 @@ - (void)writeOutputFiles;
131131
[interfacewriteToURL:interfaceURLatomically:YESencoding:NSUTF8StringEncodingerror:NULL];
132132
}
133133

134-
NSString *implementation = [NSStringstringWithFormat:@"//\n// This file is generated from%@ by%@.\n// Please do not edit.\n//\n\n#import\"%@\"\n\n\n@implementation%@\n\n%@\n\n@end\n",self.inputURL.lastPathComponent,self.toolName, classNameH,self.className, [self.implementationContentscomponentsJoinedByString:@"\n"]];
134+
NSString *implementation = [NSStringstringWithFormat:@"//\n// This file is generated from%@ by%@.\n// Please do not edit.\n//\n\n#import\"%@\"\n\n\n@implementation%@\n\n%@\n@end\n",self.inputURL.lastPathComponent,self.toolName, classNameH,self.className, [self.implementationContentscomponentsJoinedByString:@"\n"]];
135135
if (![implementationisEqualToString:[NSStringstringWithContentsOfURL:implementationURLencoding:NSUTF8StringEncodingerror:NULL]]) {
136136
[implementationwriteToURL:implementationURLatomically:YESencoding:NSUTF8StringEncodingerror:NULL];
137137
}

‎assetgen/AGCatalogParser.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ @interface AGCatalogParser ()
1717

1818
@implementationAGCatalogParser
1919

20+
+ (NSString *)inputFileExtension;
21+
{
22+
return@"xcassets";
23+
}
24+
2025
- (void)startWithCompletionHandler:(dispatch_block_t)completionBlock;
2126
{
2227
dispatch_group_t dispatchGroup =dispatch_group_create();

‎codegenutils.xcodeproj/project.pbxproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/* End PBXCopyFilesBuildPhase section */
4545

4646
/* Begin PBXFileReference section */
47-
A885F89B17DA8C7A00A29164 /* colordump */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = colordump; sourceTree = BUILT_PRODUCTS_DIR; };
47+
A885F89B17DA8C7A00A29164 /*objc-colordump */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path ="objc-colordump"; sourceTree = BUILT_PRODUCTS_DIR; };
4848
A885F89E17DA8C7A00A29164 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
4949
A885F8A117DA8C7A00A29164 /* colordump-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "colordump-Prefix.pch"; sourceTree = "<group>"; };
5050
A885F8A217DA8C7A00A29164 /* colordump.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = colordump.1; sourceTree = "<group>"; };
@@ -127,7 +127,7 @@
127127
isa = PBXGroup;
128128
children = (
129129
A89D8FE317CFFDCE0077F2B5 /* objc-assetgen */,
130-
A885F89B17DA8C7A00A29164 /* colordump */,
130+
A885F89B17DA8C7A00A29164 /*objc-colordump */,
131131
);
132132
name = Products;
133133
sourceTree = "<group>";
@@ -178,7 +178,7 @@
178178
);
179179
name = colordump;
180180
productName = colordump;
181-
productReference = A885F89B17DA8C7A00A29164 /* colordump */;
181+
productReference = A885F89B17DA8C7A00A29164 /*objc-colordump */;
182182
productType = "com.apple.product-type.tool";
183183
};
184184
A89D8FE217CFFDCE0077F2B5 /* assetgen */ = {
@@ -258,7 +258,7 @@
258258
"DEBUG=1",
259259
"$(inherited)",
260260
);
261-
PRODUCT_NAME = "$(TARGET_NAME)";
261+
PRODUCT_NAME = "objc-colordump";
262262
};
263263
name = Debug;
264264
};
@@ -267,7 +267,7 @@
267267
buildSettings = {
268268
GCC_PRECOMPILE_PREFIX_HEADER = YES;
269269
GCC_PREFIX_HEADER = "colordump/colordump-Prefix.pch";
270-
PRODUCT_NAME = "$(TARGET_NAME)";
270+
PRODUCT_NAME = "objc-colordump";
271271
};
272272
name = Release;
273273
};
@@ -369,6 +369,7 @@
369369
A885F8A617DA8C7A00A29164 /* Release */,
370370
);
371371
defaultConfigurationIsVisible = 0;
372+
defaultConfigurationName = Release;
372373
};
373374
A89D8FDE17CFFDCE0077F2B5 /* Build configuration list for PBXProject "codegenutils" */ = {
374375
isa = XCConfigurationList;

‎colordump/CDColorListDumper.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
@implementationCDColorListDumper
1414

15+
+ (NSString *)inputFileExtension;
16+
{
17+
return@"clr";
18+
}
19+
1520
- (void)startWithCompletionHandler:(dispatch_block_t)completionBlock;
1621
{
1722
NSString *colorListName = [[self.inputURLlastPathComponent]stringByDeletingPathExtension];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp