Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Add support for fresh install of Xcode 4.3, update README to add miss…
Browse files Browse the repository at this point in the history
…ing required parameter
  • Loading branch information
perchrh committed Mar 2, 2012
1 parent 91e9185 commit 28f0fed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Install and debug iPhone apps without using Xcode. Designed to work on unjailbro

## 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.
* `<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
Expand All @@ -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.
* 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.
5 changes: 5 additions & 0 deletions fruitstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28f0fed

Please sign in to comment.