Created
September 13, 2014 17:32
-
-
Save niklasberglund/4534113ce7db9572e772 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 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