vokal / Cat2Cat

Creates a category on UIImage from Asset Catalogs in order to reduce typos and enable auto-complete with image names.
MIT License
46 stars 11 forks source link

Output dir cannot include spaces #20

Closed brockboland closed 9 years ago

brockboland commented 9 years ago

The command fails when the output directory includes spaces. This command:

/ProjectPath/Pods/Cat2Cat/CocoaPod/Cat2Cat --ios --objc --base-path=/ProjectPath --asset-catalog=ProjectName/Images.xcassets --output-dir=ProjectName/Generated\ Files

Resulted in this error:

2015-07-15 12:23:50.580 Cat2Cat[47933:22127084] Walking catalogs (
    "/ProjectPath/ProjectName/Images.xcassets"
)

2015-07-15 12:23:50.593 Cat2Cat[47933:22127084] WRITING ERROR! 

H: Error Domain=NSCocoaErrorDomain Code=514 "The item couldn’t be saved because the file name is invalid.", 

M: Error Domain=NSCocoaErrorDomain Code=514 "The item couldn’t be saved because the file name is invalid."

2015-07-15 12:23:50.593 Cat2Cat[47933:22127084] 

!!!!ERROR CREATING YOUR FILES - PLEASE CHECK THE CONSOLE FOR OUTPUT!!!

I removed the space in my Generated Files directory, and that fixed it.