2

I am working on a framework , I want to make a build of that which should work on both iphone-simulator and iphone-device(i386 and ARM Architecture).

So i need run script which will build framework for both iphone-simulator and iphone-device and combine binary of both to make universal framework.

1 Answer 1

3

In order to write a Run Script in Build Phase follow the following steps :

  1. Add a Run Script in iOS you need select your project on the left side in project and then go to "Build Phases".

enter image description here

  1. Click on the "+" button on the setting and select "New Run Script Phase"

enter image description here

  1. You can now add any script inside the "Run Script Section"

enter image description here

Note: In the "Shell" option under the "Run Script" header type the path of executable where your script should run.

These steps are also present in the following link :

http://runscriptbuildphase.com/

Sign up to request clarification or add additional context in comments.

2 Comments

Let me know if you have any issue in following these steps
I know where to write run script. I was asking for run script which will build framework for both iphone-simulator and iphone-device and combine binary of both to make universal framework.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.