Permalink
Browse files

[COMPATIBILITY] Added support for Xcode 4.3.

  • Loading branch information...
1 parent d65e436 commit f95c2fe4c6ba564d068e97eec5315d048ad6827d @sadatrahman sadatrahman committed Apr 17, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 fruitstrap.c
View
@@ -95,6 +95,16 @@ CFStringRef copy_device_support_path(AMDeviceRef device) {
path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/%@"), version);
found = path_exists(path);
}
+ if (!found)
+ {
+ path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/%@"), version);
+ found = path_exists(path);
+ }
+ if (!found)
+ {
+ path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest"));
+ found = path_exists(path);
+ }
CFRelease(version);
CFRelease(build);

0 comments on commit f95c2fe

Please sign in to comment.