Questions tagged [swiftgen]

11 questions
4
votes
1 answer

Not able to run builds on travis after using SPM plugin

Getting following error when running builds having any SPM plugin like SwiftGenPlugin: The following build commands failed: Validate plug-in “SwiftGenPlugin” in package “swiftgenplugin” Build link:…
Mukesh
  • 2,792
  • 15
  • 32
3
votes
2 answers

SwiftGen - multiple outputs each from a separate strings input

I have two .strings files in Xcode project, say: First.strings and Second.strings, and would like SwiftGen to generate a separate .swift file for each of them — one with contents of First.strings file and second with the contents of Second.strings…
dobranoc
  • 465
  • 1
  • 4
  • 17
1
vote
1 answer

Using SwiftGen to create a nested enum for assets

I'm setting up SwiftGen in the project and want to create a nested enum of assets like shown in the docs... https://github.com/SwiftGen/SwiftGen#asset-catalog I've tried multiple ways to set up the assets catalog and different config options in the…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
1
vote
0 answers

Illegal instruction: mint run SwiftGen/SwiftGen@6.5.0

Running into issues on my machine running mint w/ swiftgen 20105 Illegal instruction: 4 mint run SwiftGen/SwiftGen@6.5.0 swiftgen config run --config UI/SupportingFiles/swiftgen.yml Command PhaseScriptExecution failed with a nonzero exit code I'm…
Tim Nuwin
  • 2,775
  • 2
  • 29
  • 63
0
votes
0 answers

Generate objective-c string literal with Tuist

I'm new to tuist and i'd like to use the swiftgen feature to generate my Localizable strings to some objc cause my project still have some objc files. Sorry i'm new to tuist and junior dev ^^' When i generate my TuistStrings+{name}.strings files…
0
votes
0 answers

iOS SwiftGen, avoid losing changes in plist file

I have project with SwiftGen. I need to edit plist file and avoid losing changes after "make generate" command. But any time when I run "make generate" command all changes disappear. Please help me to find the way to edit plist file and save…
dev2.3.
  • 1
  • 1
0
votes
0 answers

Why do I have different shell commands available to me in terminal vs xcode?

When I run swiftgen in Terminal the command is recognized. When a script in a xcode build runs swiftgen it says command not found. How are the two environments different, and how can I get them in sync? I tried different shells in both and they…
0
votes
1 answer

Can you generate properties from comments rather than keys in Localizable.strings using SwiftGen?

Is there a way to generate properties from comments, rather than localization keys using SwiftGen? Here's an example for better illustration of what I mean: Lozalizable.strings: ... /* file_detail.button.download */ "T00014" =…
Lachtan
  • 4,803
  • 6
  • 28
  • 34
0
votes
1 answer

SwiftGen "Killed: 9" at startup because "Code Signature Invalid", but only if installed via Homebrew

I installed the latest (6.4.0, October 2020) version of SwiftGen via Homebrew on a new MacBook Pro M1 running Big Sur (11.1), but every time I try to run it, it's killed, and the console says that it's because EXC_BAD_ACCESS (Code Signature…
NRitH
  • 13,441
  • 4
  • 41
  • 44
-1
votes
1 answer

Can you rename certain strings using SwiftGen

I'm using swiftgen to generate some enums for my iOS app but the strings that we use have words in them like... "something_string_something" or "something_float_something". This means that when the enums are generated it creates... public enum…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
-1
votes
1 answer

Use SwiftGen 6.1.0 for multiple assets in multiple directories

I have a very large project with multiple modules. I use separated Assets.xcassets in each of modules. Is it possible to use universal .yml declaration for use images? Now my .yml looks like listing below: xcassets: inputs: -…
Ihor M.
  • 184
  • 10