Add support for fresh install of Xcode 4.3, update README to add missing required parameter
This commit is contained in:
parent
91e9185dbe
commit
28f0fed5b6
@ -10,7 +10,7 @@ Install and debug iPhone apps without using Xcode. Designed to work on unjailbro
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
* `fruitstrap [-d] <app> [device_id]`
|
* `fruitstrap [-d] -b <app> [device_id]`
|
||||||
* Optional `-d` flag launches a remote GDB session after the app has been installed.
|
* Optional `-d` flag launches a remote GDB session after the app has been installed.
|
||||||
* `<app>` must be an iPhone application bundle, *not* an IPA.
|
* `<app>` 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
|
* Optional device id, useful when you have more than one iPhone/iPad connected to your computer
|
||||||
|
@ -91,6 +91,11 @@ CFStringRef copy_device_support_path(AMDeviceRef device) {
|
|||||||
path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Developer/Platforms/iPhoneOS.platform/DeviceSupport/%@"), version);
|
path = CFStringCreateWithFormat(NULL, NULL, CFSTR("/Developer/Platforms/iPhoneOS.platform/DeviceSupport/%@"), version);
|
||||||
found = path_exists(path);
|
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(version);
|
||||||
CFRelease(build);
|
CFRelease(build);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user