Skip to content

Commit 5377d9b

Browse files
IncontIncont
authored andcommitted
Merge remote-tracking branch 'phonegap/master'
2 parents e5fc979 + 5d2a0d5 commit 5377d9b

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

ios-deploy.c

Lines changed: 8 additions & 13 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.6.1"
21+
#define APP_VERSION "1.6.3"
2222
#define PREP_CMDS_PATH "/tmp/fruitstrap-lldb-prep-cmds-"
2323
#define LLDB_SHELL "lldb -s " PREP_CMDS_PATH
2424
/*
@@ -446,16 +446,11 @@ CFStringRef get_device_full_name(const AMDeviceRef device) {
446446
if (verbose)
447447
{
448448
char *devName = MYCFStringCopyUTF8String(device_name);
449-
printf("Device Name:[%s]\n",devName);
450-
CFShow(device_name);
451-
printf("\n");
449+
CFShow([NSString stringWithFormat:@"Device Name: %s\n", devName]);
452450
free(devName);
453451

454452
char *mdlName = MYCFStringCopyUTF8String(model_name);
455-
printf("Model Name:[%s]\n",mdlName);
456-
printf("MM: [%s]\n",CFStringGetCStringPtr(model_name, kCFStringEncodingUTF8));
457-
CFShow(model_name);
458-
printf("\n");
453+
CFShow([NSString stringWithFormat:@"Model Name: %s\n", mdlName]);
459454
free(mdlName);
460455
}
461456

@@ -1566,25 +1561,25 @@ void handle_device(AMDeviceRef device) {
15661561
CFStringRef found_device_id = AMDeviceCopyDeviceIdentifier(device),
15671562
device_full_name = get_device_full_name(device),
15681563
device_interface_name = get_device_interface_name(device);
1569-
1564+
15701565
if (detect_only) {
1571-
printf("[....] Found %s connected through %s.\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(device_interface_name, CFStringGetSystemEncoding()));
1566+
CFShow([NSString stringWithFormat:@"[....] Found %@ connected through %@.\n", device_full_name, device_interface_name]);
15721567
found_device = true;
15731568
return;
15741569
}
15751570
if (device_id != NULL) {
15761571
if(strcmp(device_id, CFStringGetCStringPtr(found_device_id, CFStringGetSystemEncoding())) == 0) {
15771572
found_device = true;
15781573
} else {
1579-
printf("Skipping %s.\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()));
1574+
CFShow([NSString stringWithFormat:@"Skipping %@.\n", device_full_name]);
15801575
return;
15811576
}
15821577
} else {
15831578
device_id = MYCFStringCopyUTF8String(found_device_id);
15841579
found_device = true;
15851580
}
15861581

1587-
printf("[....] Using %s (%s).\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(found_device_id, CFStringGetSystemEncoding()));
1582+
CFShow([NSString stringWithFormat:@"[....] Using %@ (%@).\n", device_full_name, found_device_id]);
15881583

15891584
if (command_only) {
15901585
if (strcmp("list", command) == 0) {
@@ -1649,7 +1644,7 @@ void handle_device(AMDeviceRef device) {
16491644

16501645
if(install) {
16511646
printf("------ Install phase ------\n");
1652-
printf("[ 0%%] Found %s connected through %s, beginning install\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(device_interface_name, CFStringGetSystemEncoding()));
1647+
CFShow([NSString stringWithFormat:@"[ 0%%] Found %@ connected through %@, beginning install\n", device_full_name, device_interface_name]);
16531648

16541649
AMDeviceConnect(device);
16551650
assert(AMDeviceIsPaired(device));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ios-deploy",
3-
"version": "1.6.1",
3+
"version": "1.6.2",
44
"os" : [ "darwin" ],
55
"description": "launch iOS apps iOS devices from the command line (Xcode 6)",
66
"main": "ios-deploy",

0 commit comments

Comments
 (0)