Forked from niklasberglund/cocoapods_prepare_commands_paths.sh
Created
December 7, 2018 09:41
-
-
Save iwill/beeede2bf2c8660b20ca0f4d1a2bbc86 to your computer and use it in GitHub Desktop.
Example of how you can get project dir and file path in a podspec's prepare_command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get project directory path | |
current_pwd="$PWD" | |
project_dir=`cd "../../"; pwd` | |
cd "$current_pwd" | |
# Get .xcodeproj file path (yes I know it's not a file) | |
project_file=`find "$project_dir" -maxdepth 1 -name "*.xcodeproj" | tail -1` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment