Skip to content

Xcode Option Initializer for Swift Package Manager in Perfect Projects.

License

Notifications You must be signed in to change notification settings

PerfectSideRepos/XcodeInit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Xcode Options for Swift Package Manager

Get Involed with Perfect!

Star Perfect On Github Stack Overflow Follow Perfect on Twitter Join the Perfect Slack

Swift 4.0 Platforms OS X License Apache PerfectlySoft Twitter Slack Status

This Script can patch customWorkingDirectory = "$PROJECT_DIR" to Xcode project after automatically applying swift package generate-xcodeproj, as well as setting environmental variables for testing / running in Xcode.

This can be useful when you have to modify Swift Package dependencies and Xcode project has to be re-generated.

Quick Start

Install

Open a terminal then copy the following script to it.

git clone https://github.com/PerfectSideRepos/XcodeInit.git && \
sudo cp XcodeInit/swift-xcode-init /usr/local/bin && \
rm -rf XcodeInit && \
sudo chmod +x /usr/local/bin/swift-xcode-init 

Usage

When you need to create an Xcode project after clone any Perfect templates, simply run swift-xcode-init in the project folder.

If there are environmental variables to apply, then use the command as blow:

swift-xcode-init key1=value1 key2=value2 key3=value3

It will be useful when uncertain or credential info needs to apply but you don't want to store these secrets to github, for example:

swift-xcode-init MYUSR=mysql_user_name MYPWD=mysql_password

You can check Xcode schemes for these settings.

Issues

We are transitioning to using JIRA for all bugs and support related issues, therefore the GitHub issues has been disabled.

If you find a mistake, bug, or any other helpful suggestion you'd like to make on the docs please head over to http://jira.perfect.org:8080/servicedesk/customer/portal/1 and raise it.

A comprehensive list of open issues can be found at http://jira.perfect.org:8080/projects/ISS/issues

Further Information

For more information on the Perfect project, please visit perfect.org.

Now WeChat Subscription is Available (Chinese)

About

Xcode Option Initializer for Swift Package Manager in Perfect Projects.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages