Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f1a2c40566 | ||
![]() |
c92682d148 | ||
![]() |
08f3b92306 | ||
![]() |
a4f3c2c84b | ||
![]() |
a3a99e6553 | ||
![]() |
7f2231bd39 | ||
![]() |
ad7c97d01f | ||
![]() |
fa88a73a9a | ||
![]() |
83150622c2 | ||
![]() |
42f41798a6 | ||
![]() |
486d0d92e0 | ||
![]() |
c97735aaee | ||
![]() |
d7c38e9e9f | ||
![]() |
6f78fbc5f3 | ||
![]() |
3854bc429a | ||
![]() |
2c99d25d53 | ||
![]() |
1fe3ce5244 | ||
![]() |
017b85e4e8 | ||
![]() |
79aff2586a | ||
![]() |
88db2f0555 |
13
Makefile
13
Makefile
@@ -1,4 +1,4 @@
|
||||
IOS_CC = gcc
|
||||
IOS_CC = gcc -ObjC
|
||||
IOS_SDK = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
|
||||
DEVICE_SUPPORT = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/DeviceSupport
|
||||
|
||||
@@ -11,10 +11,10 @@ demo.app: demo Info.plist
|
||||
codesign -f -s "iPhone Developer" --entitlements Entitlements.plist demo.app
|
||||
|
||||
demo: demo.c
|
||||
$(IOS_CC) -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c
|
||||
$(IOS_CC) -g -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c
|
||||
|
||||
ios-deploy: ios-deploy.c
|
||||
$(IOS_CC) -o ios-deploy -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
|
||||
ios-deploy: clean ios-deploy.c
|
||||
$(IOS_CC) -g -o ios-deploy -framework Foundation -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
|
||||
|
||||
symlink:
|
||||
cd $(DEVICE_SUPPORT); ln -sfn "`find . -type d -maxdepth 1 -exec basename {} \; | tail -1`" Latest
|
||||
@@ -23,8 +23,11 @@ install: symlink ios-deploy
|
||||
mkdir -p $(prefix)/bin
|
||||
cp ios-deploy $(prefix)/bin
|
||||
|
||||
uninstall:
|
||||
rm $(prefix)/bin/ios-deploy
|
||||
|
||||
debug: all
|
||||
./ios-deploy --debug --bundle demo.app
|
||||
|
||||
clean:
|
||||
rm -rf *.app demo ios-deploy
|
||||
rm -rf *.app demo ios-deploy
|
||||
|
@@ -448,6 +448,11 @@ void AMDAddLogFileDescriptor(int fd);
|
||||
//kern_return_t AMDeviceSendMessage(service_conn_t socket, void *unused, CFPropertyListRef plist);
|
||||
//kern_return_t AMDeviceReceiveMessage(service_conn_t socket, CFDictionaryRef options, CFPropertyListRef * result);
|
||||
|
||||
typedef int (*am_device_install_application_callback)(CFDictionaryRef, int);
|
||||
|
||||
mach_error_t AMDeviceInstallApplication(service_conn_t socket, CFStringRef path, CFDictionaryRef options, am_device_install_application_callback callback, void *user);
|
||||
mach_error_t AMDeviceTransferApplication(service_conn_t socket, CFStringRef path, CFDictionaryRef options, am_device_install_application_callback callbackj, void *user);
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Semi-private routines
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
18
README.md
18
README.md
@@ -10,10 +10,20 @@ Install and debug iPhone apps without using Xcode. Designed to work on unjailbro
|
||||
|
||||
## Usage
|
||||
|
||||
* `ios-deploy [-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.
|
||||
./ios-deploy [OPTION]...
|
||||
-d, --debug launch the app in GDB after installation
|
||||
-i, --id <device_id> the id of the device to connect to
|
||||
-c, --detect only detect if the device is connected
|
||||
-b, --bundle <bundle.app> the path to the app bundle to be installed
|
||||
-a, --args <args> command line arguments to pass to the app when launching it
|
||||
-t, --timeout <timeout> number of seconds to wait for a device to be connected
|
||||
-u, --unbuffered don't buffer stdout
|
||||
-g, --gdbargs <args> extra arguments to pass to GDB when starting the debugger
|
||||
-x, --gdbexec <file> GDB commands script file
|
||||
-n, --nostart do not start the app when debugging
|
||||
-v, --verbose enable verbose output
|
||||
-m, --noinstall directly start debugging without app install (-d not required)
|
||||
-V, --version print the executable version
|
||||
|
||||
## Demo
|
||||
|
||||
|
848
ios-deploy.c
848
ios-deploy.c
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,12 @@
|
||||
{
|
||||
"name": "ios-deploy",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.6",
|
||||
"description": "launch iOS apps iOS devices from the command line (Xcode 4)",
|
||||
"main": "ios-deploy",
|
||||
"scripts": {
|
||||
"install": "make install prefix=/usr/local"
|
||||
"preinstall": "make ios-deploy"
|
||||
},
|
||||
"bin" : "./ios-deploy" ,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phonegap/ios-deploy"
|
||||
|
Reference in New Issue
Block a user