Skip to content

Commit 39aa232

Browse files
committed
Merge pull request #137 from mathworks/master
fixed the japanese issue
2 parents 522f7bd + 609b635 commit 39aa232

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Install and debug iOS apps without using Xcode. Designed to work on un-jailbroke
99
* Xcode 6 or greater should be installed
1010

1111
## Installation
12+
=======
1213

1314
ios-deploy installation is made simple using the node.js package manager. If you use [Homebrew](http://brew.sh/), install [node.js](https://nodejs.org):
1415

ios-deploy.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "MobileDevice.h"
1919
#include "errors.h"
2020

21-
#define APP_VERSION "1.7.0"
21+
#define APP_VERSION "1.7.1"
2222
#define PREP_CMDS_PATH "/tmp/fruitstrap-lldb-prep-cmds-"
2323
#define LLDB_SHELL "lldb -s " PREP_CMDS_PATH
2424
/*
@@ -1002,11 +1002,11 @@ void setup_lldb(AMDeviceRef device, CFURLRef url) {
10021002

10031003
if(AMDeviceGetInterfaceType(device) == 2)
10041004
{
1005-
printf("Cannot debug %s over %s.\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(device_interface_name, CFStringGetSystemEncoding()));
1005+
CFShow([NSString stringWithFormat:@"Cannot debug %@ over %@.\n", device_full_name, device_interface_name]);
10061006
exit(0);
10071007
}
10081008

1009-
printf("Starting debug of %s connected through %s...\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(device_interface_name, CFStringGetSystemEncoding()));
1009+
CFShow([NSString stringWithFormat:@"Starting debug of %@ connected through %@...\n", device_full_name, device_interface_name]);
10101010

10111011
mount_developer_image(device); // put debugserver on the device
10121012
start_remote_debug_server(device); // start debugserver
@@ -1568,8 +1568,10 @@ void handle_device(AMDeviceRef device) {
15681568
return;
15691569
}
15701570
if (device_id != NULL) {
1571-
if(strcmp(device_id, CFStringGetCStringPtr(found_device_id, CFStringGetSystemEncoding())) == 0) {
1571+
CFStringRef deviceCFSTR = CFStringCreateWithCString(NULL, device_id, kCFStringEncodingASCII);
1572+
if (CFStringCompare(deviceCFSTR, found_device_id, kCFCompareCaseInsensitive) == kCFCompareEqualTo) {
15721573
found_device = true;
1574+
CFRelease(deviceCFSTR);
15731575
} else {
15741576
CFShow([NSString stringWithFormat:@"Skipping %@.\n", device_full_name]);
15751577
return;
@@ -1587,7 +1589,7 @@ void handle_device(AMDeviceRef device) {
15871589
} else if (strcmp("upload", command) == 0) {
15881590
upload_file(device);
15891591
} else if (strcmp("download", command) == 0) {
1590-
download_tree(device);
1592+
download_tree(device);
15911593
} else if (strcmp("mkdir", command) == 0) {
15921594
make_directory(device);
15931595
} else if (strcmp("rm", command) == 0) {

0 commit comments

Comments
 (0)