• Stars
    star
    624
  • Rank 71,995 (Top 2 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🍰 Describe Xcode projects in a human readable format and (re)generate one on demand.

Xcake

Gem Twitter: @igormaka License Build Status Gem

Back under new management!

The original author of Xcake, James Campbell has decided to move on to other endeavors.
Igor Makarov has volunteered to step in as the main maintainer, both because of his reliance on the gem for work, and because of general aversion to .pbxproj files.

Cakefile β€” A Podfile for your main project!

Describe your project in a simple text file: your Cakefile. Xcake generates your project based on this file including importing all of your files and creating groups and targets to match the file hierarchy.

This is perfect for working in teams or with CocoaPods as it reduces merge conflicts, makes it easy to modify settings and allows you to create a clean project anytime you need to.

Isn't this just like Generamba or Crafter?
No, these tools are for scafolding an initial project structure to get you started (creating folder structure, git repo etc.).
Xcake will not create a folder structure, but will generate a project from it, and will continue to generate it each time you want it. Added some files? Generate! Renamed a folder? Generate!
Sick of seeing .pbxproj diffs in git? Add your project to .gitignore and generate it on checkout.

Get in contact with the developer on Twitter: @igormaka.

PBX delendare est.


Features β€’ Installation β€’ Need help? β€’ Documentation


Features

Xcode projects were once described as "the closest thing to taboo we have to deal with on a regular basis", but it doesnt have to be this way.

Store a simple description of your project in a text file, your Cakefile, to easily create a xcode project from any computer. Easily see, merge and maintain the structure of your project, It’s time to add *.xcodeproj into .gitignore!.

You define a project like this:

application_for :ios, 8.0 do |target|
  target.name = "MyApp"
end

To generate the xcode project, just run:

xcake make

If you would like an example Cakefile for guidence, just run:

xcake init
xcake
✨ Flexibly configure and create xcode project from one easy to read Cakefile
🚒 Generate from any computer, including a CI-server
πŸ’­ Never remember any difficult commands, just xcake make
πŸ“ƒ Store everything but the project in git. Never again manually fix any corruptions or merge issues with the project.
πŸš€ Saves you hours when working with xcode projects
βš“ Confidence that the project file is exactly the same during Continuous Delivery
πŸ’» Support for OSX, iOS and watchOS apps

Installation

Install the gem by running:

sudo gem install xcake --verbose

Make sure, you have the latest version of the Xcode command line tools installed:

xcode-select --install

If you experience slow launch times of xcake, try running

gem cleanup

to clean up outdated gems.

System Requirements: xcake requires Mac OS X or Linux with Ruby 2.0.0 or above.

Available commands

Xcake can create an example cakefile when you run:

xcake init

Usually you'll use xcake by running the command

xcake make

Xcake will then generate a Xcode project based on your Cakefile

Sample Cakefile

To get better understanding of how to start using Xcake in a real project, see examples under example folder.

There is a sample app project (the project file has been generated using Xcake v.0.7.1 based on the Cakefile) as well as sample Cakefile for an iOS framework project.

Need help?

Please submit an issue on GitHub and provide information about your setup

People who use Xcake

  • Bending Spoons
  • Moovit

License

This project is licensed under the terms of the MIT license. See the LICENSE file.

This project is no way affiliated with Apple Inc. This project is open source under the MIT license, which means you have full access to the source code and can modify it to fit your own needs. Xcake runs on your own computer or server, so your sensitive information will never leave your own computer. You are responsible for how you use xcake.

More Repositories

1

timezones

All the timezones of all the cities, as a static site!
Ruby
48
star
2

XCFrameworkConverter

Convert an ancient .framework (dynamic or static) to an .xcframework. Add an arm64 Simulator patch.
Ruby
30
star
3

BeaconKit

iOS Beacon framework using BTLE
Swift
27
star
4

swift-ffi

Demo for exporting Swift code to use with Ruby FFI
Swift
11
star
5

fabricate

DEPRECATED - Google has discontinued Fabric, and this tool no longer works.
Ruby
6
star
6

cocoapods-git-tarball

A CocoaPods plugin that downloads pods from git repos as tarballs, if possible.
Ruby
5
star
7

winchpass-server

The static server component of the WinchPass Chrome Extension
JavaScript
4
star
8

xcoed

Xcoed - use a `Package.swift` for an Xcode project
Ruby
4
star
9

cordova-plugin-twilio-video-ios

Cordova Plugin that wraps Twilio Video native iOS framework
Objective-C
3
star
10

RxReactiveObjC

A bridge between RxSwift and ReactiveObjC
Swift
3
star
11

ipa-tools

IPA Tools - a Vagrant box for general-pupose IPA hacking
AppleScript
2
star
12

xib-image-validator

Ensure you have the proper image files that you've referenced in your XIBs.
Ruby
2
star
13

DemoCDNSource

Demo for how to use CDNSource in CocoaPods
Swift
1
star
14

cdn-node-cocoapods

CocoaPods CDN Server
JavaScript
1
star
15

test-git-revision

1
star
16

DemoXcoed

Demo for Xcoed https://github.com/igor-makarov/xcoed
Swift
1
star
17

DemoLargeNumberOfSwiftFiles

Swift compiler bug repro - lots of files cause the driver to lock up
Swift
1
star
18

SwiftPostal

A Swift wrapper for https://github.com/openvenues/libpostal.
Swift
1
star
19

PublishTest1

sample website using https://github.com/JohnSundell/Publish
Swift
1
star
20

cordova-plugin-twilio-video-ios-example

Example for using cordova-plugin-twilio-video-ios
CSS
1
star
21

xcake-template

iOS app template, made easy using Xcake!
Swift
1
star