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.
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
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.
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
For more information on the Perfect project, please visit perfect.org.