GithubHelp home page GithubHelp logo

husseinhj / fat-framework-script-for-ios Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 3.0 12 KB

Script for build iOS universal framework with Terminal or Jenkins or any tools......

Shell 100.00%
jenkins-build ios-framework build-scripts ci universal-framework

fat-framework-script-for-ios's Introduction

Build universal framework

I don't known have you every try to build iOS universal framework with Jenkins or not. I've try to create a build script to create Universal framework package. It was very hard to find out how it work. After i don't know 1 week or 3 days i finally find out how xcodebuild work and when we want's to run with iPhone device not simulator we should remove our code.

So how to build iOS universal framework with shell script and work with Jenkins . Let do this guys ๐Ÿƒ

Note : This script give you iOS universal framework Work with any iOS devices, except iPhone 5 simulator. It works in iPhone 5 and iPhone 5s device.

Don't forget Start.

Add variable to project file

Go to your project and from TARGETS select your project and click on Build Settings Tab and like this image click on (+) button and in shown menu click on Add User-Defined Setting :

Click on Add User-Defined Setting

So now add new variable in User-Defined section. like bottom image change variable name to JENKINS and click on Arrow in left side of variable and for Debug mode Enter NO value and for Release mode enter YES value :

Change variable to JENKINS name

So very thinks seems to be simple. Let go to see Script and Modify it.

Build-Script

We have some variables in Build-Script let see them and of corse should change them.

Project Name :

In this variable should enter your project name or your target name

TARGET_NAME="MY PROJECT NAME"

Configuration :

Determine your configuration is Debug or Release :

CONFIGURATION="Release"

Universal framework path :

Determine you want to get universal framework was copy where :

UNIVERSAL_OUTPUTFOLDER="${BUILD_ROOT}/${CONFIGURATION}-universal"

Note : Universal build automatic was copied to root project path with this code :

cp -rf "${UNIVERSAL_OUTPUTFOLDER}/${PROJECT_NAME}.framework" "${PROJECT_DIR}"

Add script file to Project

Link bottom image click on (+) button and when menu was shown click on New Run Script Phase. So you see create new section Run Script enter this code here :

$SRCROOT/build-script.sh

This code get shell file from you root project path and run this code for debugging mode if you want to run sample project with your framework project.

script in project

Now put build-script file beside of your project and run this shell with Terminal or Jenkins

fat-framework-script-for-ios's People

Contributors

husseinhj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.