XcodeGen
R.swift
Our great sponsors
XcodeGen | R.swift | |
---|---|---|
8 | 5 | |
6,778 | 9,394 | |
- | - | |
7.8 | 6.5 | |
7 days ago | 21 days 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
R.swift
- SPM and localization
-
Simple, but accurate drawing for iOS
I was having trouble getting R.swift to work with with SPM, potentially it's not supported yet? https://github.com/mac-cain13/R.swift/issues/735
-
Custom styling similar to Android for iOS
All resources in Android are referenced in a static class called R, so accessing to individual resources is pretty easy using R.[typeOfResource].resourceName. For iOS we use a library that does something similar, is called R.swift With that we can access resources in iOS using an 'Android like' sintax
-
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 🤓
Same was posted on the /r/iOSProgramming post for this, but I'm definitely not going back to using the raw NSLocalizedString call or extensions after I started using R.swift. Type safety and auto complete for all your assets is a real win in my book.
Or R.swift Clean and convenient solution.
What are some alternatives?
Tuist - 🚀 Create, maintain, and interact with Xcode projects at scale
SwiftGen - The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!
Shark - Swift CLI for strong-typing images, colors, storyboards, fonts and localizations
fastlane-plugin-appicon - Generate required icon sizes and iconset from a master application icon.
SwifterSwift - A handy collection of more than 500 native Swift extensions to boost your productivity.
Struct - Xcode projects on steroids
infer - A static analyzer for Java, C, C++, and Objective-C
xcbuild - Xcode-compatible build tool.
Xtrace - Trace Objective-C method calls by class or instance
jazzy - Soulful docs for Swift & Objective-C
Dollar - A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript