Skip to content
forked from alpreu/xctools

Handy command line tool for Xcode

License

Notifications You must be signed in to change notification settings

mceSystems/xctools

 
 

Repository files navigation


Maintenance Twitter: @xcodedotswift Swift Package Manager License

A set of command line tools to interact with your Xcode projects.

Install

You can easily install xctools with Homebrew:

brew tap xcodeswift/xctools [email protected]:xcodeswift/xctools.git
brew install xctools

You can also easily run the tool using 🌱 Mint:

mint run xcodeswift/xctools

Setup

  1. Git clone the repository git clone [email protected]:xcodeswift/xctools.git
  2. Build with swift build

Usage

You can check the available commands by just running xctools from the console.

Frameworks

Embed

It embeds your frameworks, their symbols, and the bcsymbolmap files into your built product stripping all the unnecessary architectures. This command should be used from a Xcode build phase as shown in the screenshot below:

Xcode build phase using the command to embed the frameworks

Strip

It strips architectures from your frameworks:

xctools frameworks strip MyFramework.framework --archs armv7

Build Settings

Clean

It cleans the build settings from a target or a project:

xctools build-settings clean --project MyProject.xcodeproj
xctools build-settings clean --project MyProject.xcodeproj --target MyTarget

Export

It exports the build settings into a .xcconfig file:

xctools build-settings export --project MyProject.xcodeproj --output MyProject.xcconfig
xctools build-settings export --project MyProject.xcodeproj --target --output Target.xcconfig

// It can merge the project and target settings into a single .xcconfig file
xctools build-settings export --project MyProject.xcodeproj --target --output Target.xcconfig --merge

References

Contributors ❤️

pepibumur

License

MIT License

Copyright (c) 2017 xcode.swift

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Handy command line tool for Xcode

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 89.1%
  • Ruby 10.2%
  • Objective-C 0.7%