Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a target, add resources to that target and build the target using xcode command line tools? [closed]

I am trying to use command line tools to create, add resources, build, archive and export to ipa in xcode. I could do the Build, Archive and Exporting to IPA through the command line tools(xcodebuild). But I also wanted to duplicate the target in the same project,add a new Info.plist to the duplicated target resource through command line itself. How to do it? I could not find any valuable answers by Googling.

Is there any other tools that can be used to perform these? I don't want to use the UI. Please, help me out.

like image 589
Spidey Avatar asked May 28 '14 12:05

Spidey


People also ask

How do I create a specific target in Xcode?

Choosing Build from the Build menu or clicking the Build button in the toolbar builds the target specified in the Active Target drop-down menu in the toolbar and not the target or source file currently selected in the Groups & Files list. You can change the compilation order of the Xcode target.

What does Xcode automatically create for each target when a new project is created?

Xcode configures the initial build phases for each target at creation time, but you can add or modify those build phases later. You might add build phases to copy additional files to your app bundle, or to execute custom shell scripts. You can also examine the build phases to diagnose potential issues.

Where is target settings in Xcode?

Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.


1 Answers

This should help you for create a target : https://deallocatedobjects.com/posts/building-xcode-projects-from-the-command-line

For add ressources it seems more complicated, but check this might help you : Command line tool to add resources to an Xcode project

For build the target : https://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-mac/GUID-05ED92FF-AEDC-4E9A-B640-CA3A681D9824.htm

like image 127
Evans Belloeil Avatar answered Oct 19 '22 04:10

Evans Belloeil