Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Script can also be placed at at Project Build Phases #78

Closed
hstdt opened this issue Oct 24, 2017 · 3 comments
Closed

Run Script can also be placed at at Project Build Phases #78

hstdt opened this issue Oct 24, 2017 · 3 comments

Comments

@hstdt
Copy link

hstdt commented Oct 24, 2017

image

mono0926 added a commit that referenced this issue Oct 24, 2017
@mono0926
Copy link
Owner

@hstdt

Thanks, it works fine and I think it is better than running at Build Pre-actions.
(At that time, I misunderstood about that for some reason.)

I updated README 👍

@hstdt
Copy link
Author

hstdt commented Oct 24, 2017

@mono0926

cd $SRCROOT in script will lead to 2 building errors(Build will be success). Maybe it caused by my my project path containing a whitespace.

image

image

If it's removed, script will work, too.

I think you can try this:(Xcode9)

if [ $CONFIGURATION = "Debug" ]; then
/usr/local/bin/license-plist --output-path $PRODUCT_NAME/Settings.bundle --github-token YOUR_GITHUB_TOKEN
fi

@mono0926 mono0926 reopened this Oct 24, 2017
@mono0926
Copy link
Owner

@hstdt

Thanks, cd $SRCROOT didn't lead to building error for my project, but it is unnecessary, so I deleted it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants