Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjuly/scripts-xcode
Some common scripts that can be used as Xcode Run Script.
https://github.com/kjuly/scripts-xcode
runscript script shell swift swiftlint xcode
Last synced: about 2 months ago
JSON representation
Some common scripts that can be used as Xcode Run Script.
- Host: GitHub
- URL: https://github.com/kjuly/scripts-xcode
- Owner: Kjuly
- License: mit
- Created: 2023-07-12T02:24:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-10T00:31:48.000Z (about 1 year ago)
- Last Synced: 2023-11-22T11:04:02.895Z (about 1 year ago)
- Topics: runscript, script, shell, swift, swiftlint, xcode
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scripts-xcode
Some common scripts that can be used as Xcode Run Script.
## Usage
Xcode Project -> Choose Target -> Build Phases -> Add Run Script Phase.
Then add the commend, e.g.:
```shell
SCRIPT_PATH="../scripts-xcode"
if [ -e $SCRIPT_PATH/swiftlint.sh ]; then
$SCRIPT_PATH/swiftlint.sh $SCRIPT_PATH
else
echo "File not found for Run Script (Swift Lint)."
fi
```## swiftlint.sh
```markdown
./scripts-xcode/swiftlint.sh [PATH_TO_PARENT_CONFIG]PATH_TO_PARENT_CONFIG:
- Provide a path to a parent config file if needed.
- Leave it empty if you just need to use the .swiftlint.yml that located in the same folder of *.xcodeproj.
```
## TroubleshootIf the script is unexecutable, just open your terminal and use the commend below to make it executable:
$ chmod +x scripts-xcode/swiftlint.sh