From 28f0fed5b6cf2643bde1babf4518e2a464c9da86 Mon Sep 17 00:00:00 2001 From: Per Christian Henden Date: Fri, 2 Mar 2012 10:48:20 +0100 Subject: [PATCH] Add support for fresh install of Xcode 4.3, update README to add missing required parameter --- README.md | 4 ++-- fruitstrap.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f766340..a1ac3fb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Install and debug iPhone apps without using Xcode. Designed to work on unjailbro ## Usage -* `fruitstrap [-d] [device_id]` +* `fruitstrap [-d] -b [device_id]` * Optional `-d` flag launches a remote GDB session after the app has been installed. * `` must be an iPhone application bundle, *not* an IPA. * Optional device id, useful when you have more than one iPhone/iPad connected to your computer @@ -23,4 +23,4 @@ Install and debug iPhone apps without using Xcode. Designed to work on unjailbro ## Notes -* With some modifications, it may be possible to use this without Xcode installed; however, you would need a copy of the relevant DeveloperDiskImage.dmg (included with Xcode). GDB would also run slower as symbols would be downloaded from the device on-the-fly. \ No newline at end of file +* With some modifications, it may be possible to use this without Xcode installed; however, you would need a copy of the relevant DeveloperDiskImage.dmg (included with Xcode). GDB would also run slower as symbols would be downloaded from the device on-the-fly. diff --git a/fruitstrap.c b/fruitstrap.c index e7d1a70..92d78d5 100644 --- a/fruitstrap.c +++ b/fruitstrap.c @@ -91,6 +91,11 @@ CFStringRef copy_device_support_path(AMDeviceRef device) { path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Developer/Platforms/iPhoneOS.platform/DeviceSupport/%@"), version); found = path_exists(path); } + if (!found) + { + path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Applications/Xcode.app/Contents//Developer/Platforms/iPhoneOS.platform/DeviceSupport/%@"), version); + found = path_exists(path); + } CFRelease(version); CFRelease(build);