profile
viewpoint

pull request commentSwiftGen/SwiftGen

Strings: Support plurals / parse .stringsdict files

What helps is needed in order to complete this one?

ffittschen

comment created time in 8 hours

startedSwiftGen/StencilSwiftKit

started time in 19 hours

startedSwiftGen/SwiftGen

started time in 20 hours

fork VinceSanityyy/templates

Stencil templates for SwiftGen

fork in a day

startedSwiftGen/StencilSwiftKit

started time in a day

startedSwiftGen/SwiftGen

started time in a day

issue closedSwiftGen/SwiftGen

Support for Dark mode colors

Apple added new method for initializing dynamic colors

Color(dynamicProvider: { trait in
    if trait.userInterfaceStyle == .dark {
        return darkColor
    }
    return lightColor
}

Would it be possible to extend colors, so we can add both in txt, json or xml?

closed time in a day

AndreiVidrasco

startedSwiftGen/SwiftGen

started time in 2 days

startedSwiftGen/SwiftGen

started time in 2 days

startedSwiftGen/SwiftGen

started time in 3 days

startedSwiftGen/SwiftGen

started time in 4 days

startedSwiftGen/SwiftGen

started time in 5 days

startedSwiftGen/SwiftGen

started time in 5 days

startedSwiftGen/SwiftGen

started time in 5 days

startedSwiftGen/SwiftGen

started time in 6 days

startedSwiftGen/SwiftGen

started time in 6 days

startedSwiftGen/StencilSwiftKit

started time in 6 days

startedSwiftGen/SwiftGen

started time in 6 days

startedSwiftGen/SwiftGen

started time in 6 days

startedSwiftGen/SwiftGen

started time in 6 days

fork uli-objectbox/StencilSwiftKit

A framework bringing additional nodes & filters to Stencil dedicated to Swift code generation

fork in 7 days

startedSwiftGen/SwiftGen

started time in 7 days

startedSwiftGen/SwiftGen

started time in 7 days

startedSwiftGen/SwiftGen

started time in 7 days

issue commentSwiftGen/SwiftGen

Failed to generate UIImage if the shell is fish

I have same problem: Xcode's output: ↳ actool: error: unable to find utility "actool", not a developer tool or in PATH note: Using new build systemnote: Planning buildnote: Constructing build description

Could not build the application for the simulator. Error launching application on iPhone Xʀ.

nallwhy

comment created time in 7 days

issue openedSwiftGen/SwiftGen

Strings: stencil template creates duplicate enums

Getting error "Invalid redeclaration of 'MySub'"

Using SwiftGen v6.1.0 (Stencil v0.13.1, StencilSwiftKit v2.7.2, SwiftGenKit v6.1.0) Generating String with template structured-swift4.stencil

String keys will look like:

"main.mySub.value" = "value";
"main.my-sub.key" = "key";
"main.my_sub.key" = "key";
"main.mySub.key" = "key";

Output:

internal enum L10n {
    internal enum MySub {
      /// key
      internal static let key = L10n.tr("Localizable", "main.my-sub.key")
    }
    internal enum MySub {
      /// key
      internal static let key = L10n.tr("Localizable", "main.mySub.key")
      /// value
      internal static let value = L10n.tr("Localizable", "main.mySub.value")
    }
    internal enum MySub {
      /// key
      internal static let key = L10n.tr("Localizable", "main.my_sub.key")
    }
  }

Is there possible to convert them all to one enum? I guess that these will create each separate child under tables.first.levels.children. Any solution suggestions? I can't just rename keys, because they come from API if an error occurs.

created time in 8 days

startedSwiftGen/SwiftGen

started time in 8 days

startedSwiftGen/SwiftGen

started time in 8 days

startedSwiftGen/SwiftGen

started time in 9 days

startedSwiftGen/SwiftGen

started time in 9 days

issue closedSwiftGen/SwiftGen

Dependency graph is unresolvable

What did I do?

dependencies: [
        .package(url: "https://github.com/Realm/SwiftLint", from: "0.34.0"),
        .package(url: "https://github.com/yonaskolb/XcodeGen.git", from: "2.6.0"),
        .package(url: "https://github.com/SwiftGen/SwiftGen.git", .upToNextMajor(from: "6.1.0"))
    ]

to a brand-new Package.swift created by swift package init, and attempted to download the dependency and build the project using swift build.

What did I expect to happen?

I expected swift build to succeed.

What happened instead?

I received the following output:

error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies:
    https://github.com/SwiftGen/SwiftGen.git @ 6.1.0..<7.0.0

Charts Environment

Xcode version: 10.3 (10G8) Swift version: 5.0

closed time in 10 days

ziadtamim

issue commentSwiftGen/SwiftGen

Dependency graph is unresolvable

FYI SwiftGen does not work with SPM yet, because SPM doesn't support resource bundles (which we need for the templates). Instead you can use Mint.

ziadtamim

comment created time in 10 days

fork stjernegard/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 10 days

issue commentSwiftGen/SwiftGen

Dependency graph is unresolvable

This happens because Swiftlint 0.32.0 and newer require jpsim/Yams 2.0 while SwiftGen is still using 1.0.

ziadtamim

comment created time in 10 days

startedSwiftGen/SwiftGen

started time in 10 days

fork plam4u/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 10 days

fork itzseven/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 11 days

startedSwiftGen/SwiftGen

started time in 11 days

startedSwiftGen/SwiftGen

started time in 12 days

startedSwiftGen/SwiftGen

started time in 12 days

fork alphamike777/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 12 days

startedSwiftGen/SwiftGen

started time in 12 days

startedSwiftGen/StencilSwiftKit

started time in 12 days

startedSwiftGen/SwiftGen

started time in 12 days

startedSwiftGen/SwiftGen

started time in 13 days

startedSwiftGen/SwiftGen

started time in 13 days

startedSwiftGen/SwiftGen

started time in 13 days

startedSwiftGen/SwiftGen

started time in 14 days

fork AleksandrPavliuk/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 14 days

startedSwiftGen/SwiftGen

started time in 15 days

startedSwiftGen/SwiftGen

started time in 15 days

startedSwiftGen/SwiftGen

started time in 15 days

startedSwiftGen/SwiftGen

started time in 15 days

issue closedSwiftGen/StencilSwiftKit

Pool swift reserved words en masse into a single list.

it would be useful to have a list of swift reserved words that that could be separately maintained.

I came across this just today https://github.com/apple/swift-protobuf/tree/master/Reference

kind of fits the bill. https://github.com/apple/swift-protobuf/blob/master/Reference/generated_swift_names_fields.pb.swift

Having trouble using the java / c++ code generation tool with antlr. being able to plug in a list would pay dividends down the track. related. https://github.com/antlr/antlr4/issues/1851

closed time in 15 days

johndpope

startedSwiftGen/SwiftGen

started time in 15 days

startedSwiftGen/SwiftGen

started time in 16 days

startedSwiftGen/SwiftGen

started time in 16 days

startedSwiftGen/SwiftGen

started time in 17 days

startedSwiftGen/SwiftGen

started time in 17 days

startedSwiftGen/SwiftGen

started time in 18 days

startedSwiftGen/SwiftGen

started time in 19 days

startedSwiftGen/SwiftGen

started time in 19 days

fork Lorenzoni130/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 19 days

startedSwiftGen/SwiftGen

started time in 20 days

startedSwiftGen/SwiftGen

started time in 20 days

startedSwiftGen/SwiftGen

started time in 20 days

startedSwiftGen/SwiftGen

started time in 21 days

startedSwiftGen/SwiftGen

started time in 21 days

startedSwiftGen/SwiftGen

started time in 21 days

issue commentSwiftGen/SwiftGen

SwiftGen 6.2.0

@djbe and @AliSoftware What's the status? Anything I can do to help?

djbe

comment created time in 21 days

startedSwiftGen/SwiftGen

started time in 21 days

issue openedSwiftGen/SwiftGen

Not able to Achive

I'm using SwiftGen in my project. I can run app on simulator as well as on device. But not able to archive code to upload.

Getting : SwiftGen not installed, download it from https://github.com/AliSoftware/SwiftGen Command PhaseScriptExecution failed with a nonzero exit code.

Screenshot 2019-09-24 at 6 41 55 PM

created time in 22 days

startedSwiftGen/SwiftGen

started time in 22 days

startedSwiftGen/SwiftGen

started time in 22 days

startedSwiftGen/SwiftGen

started time in 22 days

startedSwiftGen/SwiftGen

started time in 22 days

startedSwiftGen/SwiftGen

started time in 22 days

startedSwiftGen/SwiftGen

started time in 23 days

startedSwiftGen/SwiftGen

started time in 24 days

startedSwiftGen/SwiftGen

started time in 24 days

fork khanhbk08t1/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in 24 days

startedSwiftGen/SwiftGen

started time in 24 days

startedSwiftGen/SwiftGen

started time in 24 days

startedSwiftGen/SwiftGen

started time in 24 days

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

fork iOS-Swift-Controls/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

fork afnanm1999/SwiftGen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

fork in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

startedSwiftGen/SwiftGen

started time in a month

issue openedSwiftGen/SwiftGen

Generate tests

Hi! I wonder if it would be good to generate tests as well when generating code. This way it would be a no brainer to find out if everything is setup correctly and still in order. Are there any ideas to do this or has it been dismissed?

created time in a month

more