GithubHelp home page GithubHelp logo

spinogrizz / configure_extensions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radex/configure_extensions

0.0 1.0 0.0 9 KB

Automatically enable/disable app extensions from Xcode build

Home Page: http://radex.io/xcode7-xcode8/

License: MIT License

Ruby 100.00%

configure_extensions's Introduction

configure_extensions

RubyGems

Automatically enable/disable app extensions from Xcode build

Keep your project compiling on multiple versions of Xcode by removing incompatible app extensions from the build

Read Simultaneous Xcode 7 and Xcode 8 compatibility for more information about this project.


FeaturesUsageInstallationMore info

-------

Features

Say you have an iOS app. You want to add some iOS 10 app extensions to the project, but you still need to build for iOS 9, and you want to avoid branching. You configure your project just right to allow this, but what do you do with app extensions that only compile with Xcode 8?

Simple! You remove them from the "Target Dependencies" and "Embed App Extensions" build phases of the app target before you commit:

configure_extensions remove MyApp.xcodeproj MyAppTarget NotificationsUI Intents

This keeps Xcode 7 compatibility. Want to work on iOS 10 features? Add them back in an instant:

configure_extensions add MyApp.xcodeproj MyAppTarget NotificationsUI Intents

No branching necessary.

(You can also use configure_extensions to add a "fast mode" to your automated build server that skips compilation of unnecessary app extensions)

Usage

Here's full syntax of the tool:

configure_extensions <mode> <project> <app_target> <extensions...>

Add and remove app extensions from Xcode build

mode
   add    - enables passed app extension targets
   remove - disables extensions from being built and embedded in the app

project
   path to the Xcode project file

app_target
   name of the main (app) target in which extensions are to be enabled/disabled

extensions
   names of app extension targets to be enabled/disabled

EXAMPLES

configure_extensions add MyApp.xcodeproj MyApp NotificationsUI Share
configure_extensions remove Foo.xcodeproj Foo-iOS Share

Installation

sudo gem install configure_extensions

More like this

If you like configure_extensions, be sure to check out "Simultaneous Xcode 7 and Xcode 8 compatibility" where I explain in detail how to keep a single Xcode project running on multiple versions of Xcode without branching.

And if you're into Swift, you might also like SwiftyUserDefaults and SwiftyTimer.

Contributing

If you have comments, complaints or ideas for improvements, feel free to open an issue or a pull request. Or ping me on Twitter.

Author and license

Radek Pietruszewski

configure_extensions is available under the MIT license. See the LICENSE file for more info.

configure_extensions's People

Contributors

jazz-mobility avatar radex avatar spinogrizz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.