Skip to content

olofhellman/VerifyNoBS

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

VerifyNoBS (Build Settings)

This script is meant to be called from an Xcode run script build phase. It verifies there are no buildSettings embedded in the Xcode project as it is preferable to have build settings specified in .xcconfig files.

How to use:

Put this script in a folder called 'buildscripts' next to your xcode project. Then, add a "Run Script Build Phase" to one of your targets with this as the script

xcrun -sdk macosx swift buildscripts/VerifyNoBS.swift  --xcode  ${PROJECT_DIR}/${PROJECT_NAME}.xcodeproj/project.pbxproj

This will run the script and fail your build if any build settings are detected in your project file. The --xcode switch will output any errors in a format that is picked up by Xcode so you can directly click on the error and jump to the offending spot in the project file.

When running it without the --xcode switch errors will simply be written to stderr.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages