¡@

Home 

2014/10/15 ¤U¤È 10:04:45

iphone Programming Glossary: build_file

Build and Run an xcode project via AppleScript

http://stackoverflow.com/questions/1514302/build-and-run-an-xcode-project-via-applescript

the xcode project within the current hierarchy build it and run it via xcode. # bin zsh BUILD_PATH dirname 0 while z BUILD_FILE BUILD_PATH do BUILD_FILE find BUILD_PATH name ' .xcodeproj' maxdepth 1 BUILD_PATH dirname BUILD_PATH done if z BUILD_FILE.. the current hierarchy build it and run it via xcode. # bin zsh BUILD_PATH dirname 0 while z BUILD_FILE BUILD_PATH do BUILD_FILE find BUILD_PATH name ' .xcodeproj' maxdepth 1 BUILD_PATH dirname BUILD_PATH done if z BUILD_FILE then echo Couldn't find.. BUILD_PATH do BUILD_FILE find BUILD_PATH name ' .xcodeproj' maxdepth 1 BUILD_PATH dirname BUILD_PATH done if z BUILD_FILE then echo Couldn't find an xcode project file in directory exit 1 fi # Applescript likes's instead of because it's insane..