Skip to content

Instantly share code, notes, and snippets.

@kmuralidharan91
Created December 14, 2018 07:56
Show Gist options
  • Save kmuralidharan91/8d298625a7c94747db766fa6031ad409 to your computer and use it in GitHub Desktop.
Save kmuralidharan91/8d298625a7c94747db766fa6031ad409 to your computer and use it in GitHub Desktop.
Generate Resources Build Script for SwiftGen
#!/bin/sh
RSROOT=$SRCROOT/CleanAssetsManagementDemo/Resources
"$PODS_ROOT/SwiftGen/bin/swiftgen" \
xcassets -t swift3 "$RSROOT/Assets.xcassets" \
--output "$RSROOT/Assets.swift"
"$PODS_ROOT/SwiftGen/bin/swiftgen" \
strings -t structured-swift4 "$RSROOT/Localizable.strings" \
--output "$RSROOT/L10n.swift"
"$PODS_ROOT/SwiftGen/bin/swiftgen" \
colors -t swift4 "$RSROOT/Colors.json" \
--output "$RSROOT/Colors.swift"
"$PODS_ROOT/SwiftGen/bin/swiftgen" \
fonts -t swift4 "$RSROOT/Fonts" \
--output "$RSROOT/Fonts.swift"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment