All Projects → k-lpmg → xcode-build-script-for-carthage

k-lpmg / xcode-build-script-for-carthage

Licence: MIT license
If you're using Carthage, you can easily set up Framework dependency in XCode through this script

Programming Languages

ruby
36898 projects - #4 most used programming language
swift
15916 projects
shell
77523 projects

Projects that are alternatives of or similar to xcode-build-script-for-carthage

Java9 Jigsaw Depvis
DepVis (Java 9 Jigsaw Dependency Visualizer)
Stars: ✭ 14 (-12.5%)
Mutual labels:  dependency
Redo
Smaller, easier, more powerful, and more reliable than make. An implementation of djb's redo.
Stars: ✭ 1,589 (+9831.25%)
Mutual labels:  dependency
Pdf Viewer
A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.
Stars: ✭ 175 (+993.75%)
Mutual labels:  dependency
Wurststdlib2
WurstScript Standard Library Version 2
Stars: ✭ 50 (+212.5%)
Mutual labels:  dependency
Container Ioc
Inversion of Control container & Dependency Injection for Javascript and Node.js apps powered by Typescript.
Stars: ✭ 89 (+456.25%)
Mutual labels:  dependency
Webpack Babel Env Deps
Find dependencies to transpile with Babel.
Stars: ✭ 130 (+712.5%)
Mutual labels:  dependency
Kodein Mvvm
Example app using Kodein for dependency injection with MVVM and Architecture Components
Stars: ✭ 26 (+62.5%)
Mutual labels:  dependency
Dont Break
Checks if the current version of your package would break dependent projects
Stars: ✭ 200 (+1150%)
Mutual labels:  dependency
Imposter Plugin
Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.
Stars: ✭ 90 (+462.5%)
Mutual labels:  dependency
Tsyringe
Lightweight dependency injection container for JavaScript/TypeScript
Stars: ✭ 2,761 (+17156.25%)
Mutual labels:  dependency
React In Patterns Cn
React in patterns 中文版
Stars: ✭ 1,107 (+6818.75%)
Mutual labels:  dependency
Dikit
Dependency Injection Framework for Swift, inspired by KOIN.
Stars: ✭ 77 (+381.25%)
Mutual labels:  dependency
React In Patterns
A free book that talks about design patterns/techniques used while developing with React.
Stars: ✭ 10,948 (+68325%)
Mutual labels:  dependency
Vue Slicksort
A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
Stars: ✭ 1,010 (+6212.5%)
Mutual labels:  dependency
Boss
Dependency Manager for Delphi
Stars: ✭ 188 (+1075%)
Mutual labels:  dependency
Inji
a dependency inject container for golang (golang inject), objects will be closed on a reverse order of their creation
Stars: ✭ 13 (-18.75%)
Mutual labels:  dependency
Gitdependencyresolverforunity
This plugin resolves git url dependencies in the package for Unity Package Manager. You can use a git url as a package dependency!
Stars: ✭ 126 (+687.5%)
Mutual labels:  dependency
Swift Code Metrics
Code metric analyzer for Swift projects.
Stars: ✭ 244 (+1425%)
Mutual labels:  dependency
Innodependencyinstaller
Download and install any dependency such as .NET, Visual C++ or SQL Server during your application's installation!
Stars: ✭ 199 (+1143.75%)
Mutual labels:  dependency
Objc Dependency Visualizer
Objective-C and Swift dependency visualizer. It's tool that helps to visualize current state of your project. It's really easy to see how tight your classes are coupled.
Stars: ✭ 1,738 (+10762.5%)
Mutual labels:  dependency

XCode Build Script for Carthage

GitHub license

If you're using Carthage as the library dependency manager, you must manually configure the framework path to Build phases and Build settings in XCode after run 'carthage update'. However, using this script after run 'carthage update' eliminates the need to manually configure the framework path.

After carthage update, this script add a run script for Carthage to Build Phases, set up frameworks dependency and add framework search paths to Build Settings

Getting Started

This script uses Xcodeproj. Install it by performing the following command:

$ [sudo] gem install xcodeproj

1. To use the script, open the ruby file (Source/carthage_build_setup.rb)

Enter the target of your project in @scriptTargets you want to apply the script to.

# Constants
@scriptTargets = []

Enter the path to your project.

# Constants
CARTHAGE_FRAMEWORK_PATH = "YOUR_CARTHAGE_FOLDER_PATH/Carthage/Build/iOS"

# Variables
@project = Xcodeproj::Project.open"YOUR_PROJECT_PATH/YOUR_PROJECT_NAME.xcodeproj"

2. Move the script file to your project path.

3. Run

$ carthage update
$ ruby carthage_build_setup.rb

4. Press check, your project Build Phases, Frameworks and Framework Search Paths in Build Settings

Example

Building Project

  1. Install Carthage libraries.

    $ carthage update
    $ cd Scripts
    $ ruby carthage_build_phase_setup.rb

    or

    $ cd Scripts
    $ sh carthage_update.sh
  2. Open CarthageScriptExample.xcodeproj file.

  3. Press + B to build the project.

  4. Press check, the build is succeeded

  5. Press check, your project Build Phases and Framework Search Paths in Build Settings

Script Success

script-success

Frameworks Dependency

project-frameworks

Build Phases

build-phases

LICENSE

These works are available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].