diff --git a/ios-deploy.xcodeproj/project.pbxproj b/ios-deploy.xcodeproj/project.pbxproj index 2b26eb1..706ff87 100644 --- a/ios-deploy.xcodeproj/project.pbxproj +++ b/ios-deploy.xcodeproj/project.pbxproj @@ -25,6 +25,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 7E1C00CC1C3C93AF00D686B5 /* version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = version.h; path = src/version.h; sourceTree = SOURCE_ROOT; }; 7E70898E1B587BF3004D23AA /* ios-deploy */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "ios-deploy"; sourceTree = BUILT_PRODUCTS_DIR; }; 7E7089991B587DE4004D23AA /* ios-deploy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ios-deploy.c"; path = "src/ios-deploy.c"; sourceTree = SOURCE_ROOT; }; 7E70899A1B587DE4004D23AA /* errors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = errors.h; path = src/errors.h; sourceTree = SOURCE_ROOT; }; @@ -66,6 +67,7 @@ 7E7089901B587BF3004D23AA /* ios-deploy */ = { isa = PBXGroup; children = ( + 7E1C00CC1C3C93AF00D686B5 /* version.h */, 7E7089991B587DE4004D23AA /* ios-deploy.c */, 7E70899A1B587DE4004D23AA /* errors.h */, 7E70899B1B587DE4004D23AA /* MobileDevice.h */, diff --git a/src/ios-deploy.c b/src/ios-deploy.c index 65feb96..19cf0c9 100644 --- a/src/ios-deploy.c +++ b/src/ios-deploy.c @@ -18,7 +18,6 @@ #include "MobileDevice.h" #include "errors.h" -#define APP_VERSION @"1.8.4" #define PREP_CMDS_PATH @"/tmp/%@/fruitstrap-lldb-prep-cmds-" #define LLDB_SHELL @"lldb -s %@" /* @@ -1806,7 +1805,9 @@ void usage(const char* app) { } void show_version() { - NSLogOut(@"%@", APP_VERSION); + NSLogOut(@"%@", @ +#include "version.h" + ); } int main(int argc, char *argv[]) { diff --git a/src/version.h b/src/version.h new file mode 100644 index 0000000..ec8dea7 --- /dev/null +++ b/src/version.h @@ -0,0 +1 @@ +"1.8.4" \ No newline at end of file