XcodeGen
SwiftGen
XcodeGen | SwiftGen | |
---|---|---|
8 | 9 | |
7,095 | 9,294 | |
- | 0.3% | |
7.4 | 3.3 | |
6 days ago | 5 months ago | |
Swift | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
XcodeGen
-
Would creating a new Xcode project cause significant merge conflicts?
Worth noting if project file changes would be pretty common in the development flow then maybe using a regen tool would be useful to prevent major conflicts, I’d recommend https://github.com/yonaskolb/XcodeGen
-
How to manage a huge iOS project written by many teams?
There are a lot of tools and solutions that can help manage a large codebase. For example, a good CI/CD system linked to GitHub or your internal source control system can ensure that all of your unit tests and UI tests run on every PR and block PRs from merging if there are test failures. And if the company chooses not to check in the .xcodeproj or .xcworkspace file, but rather rely on project autogeneration tools like xcodegen, then you can eliminate annoying merge conflicts in PRs that happen when two teams happen to touch files that are near each other in the .pbxproj file (but at the cost of developers always having to run xcodegen when checking out a new branch).
-
brew install xcodegen
`git clone https://github.com/yonaskolb/XcodeGen.git cd XcodeGen make install`
-
Do Xcode from command line
Parent comment is right, but check out XcodeGen and get away from the project file. It’s an abomination.
- missing project.pbxproj file, how to restore it?
-
The project ‘Project-Name’ is damaged and cannot be opened due to a parse error
I don't see anything wrong with your gitignore. If this is causing too many problems, have you considered using a tool that will generate xcodeproj files for you, like XcodeGen?
-
How to better structure your Xcode projects
Curious why you guys built XCodeJS instead of going with XcodeGen or Tuist
-
The joys of creating Xcode project files
It's such trash. For my personal projects, XcodeGen is a lifesaver.
How Apple thinks that a single god file is a good idea is crazy to me. No other build tool needs this.
https://github.com/yonaskolb/XcodeGen
SwiftGen
-
Create, Push, and Present Any View Controller in 1 LOC using Metaprogramming
It is important to say that there is an elegant solution to the resource consistency problem that we haven’t adapted yet. Instead of testing raw values of UIStoryboard.Name cases, we could just generate the UIStoryboard.Name enum. Please refer to SwiftGen for the details.
-
Localization strings files have a new format/convention?
Your strings should work as-is if you use a tool like SwiftGen (it generates compiler-enforced types for use in your app).
- Do you guys/gals use the "Costants.swift" file or the "Localizations.strings" method?
- What are the most underrated third party libraries for Native iOS?
-
How would you solve this localization issue?
Tools like https://github.com/SwiftGen/SwiftGen can be used to ensure at compile time that all keys used in your app are actually defined. Having keys organized as hierarchical enums, with auto-completion in Xcode is also a nice plus.
-
Can I install SwiftGen through a Gemfile?
Our project includes a Gemfile which we use to specify some external dependencies. I'm trying to add SwiftGen (https://github.com/SwiftGen/SwiftGen) to the project. We want to eventually deprecate Cocoapods so I can't use that installation method.
-
Can I use SwiftGen to map Lottie files?
https://github.com/SwiftGen/SwiftGen/issues/627#issuecomment-715259788
- Bamboo Agent On Apple Silicon M1 Any Success Yet
-
Did you also know? In Xcode you can use the refactoring tool to wrap a literal string into a call to NSLocalizedString! Even better, you can assign a keyboard shortcut to make it even more efficient 🤓
Or you can use something like SwiftGen and have code generation for your localized strings and have it checked at compile time instead of getting those pesky typo errors at runtime that you never check ;)
What are some alternatives?
Tuist - Tuist's CLI
R.swift - Strong typed, autocompleted resources like images, fonts and segues in Swift projects
fastlane-plugin-appicon - Generate required icon sizes and iconset from a master application icon.
Localize-Swift - Swift friendly localization and i18n with in-app language switching
Struct - Xcode projects on steroids
BartyCrouch - Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.
xcbuild - Xcode-compatible build tool.
Storyboard -> SwiftUI Converter
jazzy - Soulful docs for Swift & Objective-C
L10n-swift - Localization of the application with ability to change language "on the fly" and support for plural form in any language.