Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6fc2ee5e38 | ||
|
|
443abe4d38 | ||
|
|
42a7dbcc1f | ||
|
|
4f9afb7499 | ||
|
|
f7283216ef | ||
|
|
cfb086ee44 | ||
|
|
9e52fd16d7 | ||
|
|
6c42fd3cf9 | ||
|
|
3ee1bca513 | ||
|
|
0a9418a564 | ||
|
|
72e83d06e1 | ||
|
|
bab1d5bded | ||
|
|
f0d5d58a8b | ||
|
|
8fc098a877 | ||
|
|
bad5fe321b | ||
|
|
79c4cc5c6a | ||
|
|
f54f67c418 | ||
|
|
f1a2c40566 | ||
|
|
c92682d148 | ||
|
|
08f3b92306 | ||
|
|
a4f3c2c84b | ||
|
|
a3a99e6553 | ||
|
|
7f2231bd39 | ||
|
|
ad7c97d01f | ||
|
|
fa88a73a9a | ||
|
|
83150622c2 | ||
|
|
42f41798a6 | ||
|
|
486d0d92e0 | ||
|
|
c97735aaee | ||
|
|
d7c38e9e9f | ||
|
|
6f78fbc5f3 | ||
|
|
3854bc429a | ||
|
|
2c99d25d53 | ||
|
|
1fe3ce5244 | ||
|
|
017b85e4e8 | ||
|
|
79aff2586a |
31
CONTRIBUTING.md
Normal file
31
CONTRIBUTING.md
Normal file
@@ -0,0 +1,31 @@
|
||||
## Contributing to ios-deploy
|
||||
|
||||
Github url:
|
||||
|
||||
https://github.com/phonegap/ios-deploy
|
||||
|
||||
Git clone url:
|
||||
|
||||
https://github.com/phonegap/ios-deploy.git
|
||||
|
||||
## Filing an issue
|
||||
|
||||
Please run the commands below in your Terminal.app and include it in the issue:
|
||||
|
||||
```
|
||||
1. sw_vers -productVersion
|
||||
2. ios-deploy -V
|
||||
3. xcodebuild -version
|
||||
4. xcode-select --print-path
|
||||
5. gcc --version
|
||||
6. lldb --version
|
||||
|
||||
```
|
||||
Also include **command line arguments** you used for ios-deploy.
|
||||
|
||||
|
||||
## Sending a Pull Request
|
||||
|
||||
Please **create a topic branch** for your issue before submitting your pull request. You will be asked to re-submit if your pull request contains unrelated commits.
|
||||
|
||||
Please elaborate regarding the problem the pull request is supposed to solve, and perhaps also link to any relevant issues the pull request is trying to fix.
|
||||
@@ -10,6 +10,8 @@
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>demo</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>demo</string>
|
||||
<key>CFBundleResourceSpecification</key>
|
||||
|
||||
12
Makefile
12
Makefile
@@ -1,6 +1,8 @@
|
||||
IOS_CC = gcc
|
||||
IOS_SDK = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
|
||||
IOS_SDK_VERSION = 7.1
|
||||
|
||||
IOS_CC = gcc -ObjC
|
||||
DEVICE_SUPPORT = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/DeviceSupport
|
||||
IOS_SDK = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$(IOS_SDK_VERSION).sdk
|
||||
|
||||
all: clean ios-deploy
|
||||
|
||||
@@ -11,10 +13,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: clean ios-deploy.c
|
||||
$(IOS_CC) -o ios-deploy -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks 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
|
||||
@@ -30,4 +32,4 @@ debug: all
|
||||
./ios-deploy --debug --bundle demo.app
|
||||
|
||||
clean:
|
||||
rm -rf *.app demo ios-deploy
|
||||
rm -rf *.app demo ios-deploy
|
||||
|
||||
@@ -448,6 +448,13 @@ 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);
|
||||
|
||||
int AMDeviceSecureUninstallApplication(int unknown0, struct am_device *device, CFStringRef bundle_id, int unknown1, void *callback, int callback_arg);
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Semi-private routines
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
21
README.md
21
README.md
@@ -10,10 +10,23 @@ 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
|
||||
-I, --noninteractive start in non interactive mode (quit when app crashes or exits)
|
||||
-v, --verbose enable verbose output
|
||||
-m, --noinstall directly start debugging without app install (-d not required)
|
||||
-p, --port <number> port used for device, default: 12345
|
||||
-r, --uninstall uninstall the app before install (do not use with -m; app cache and data are cleared)
|
||||
-V, --version print the executable version
|
||||
|
||||
## Demo
|
||||
|
||||
|
||||
1000
ios-deploy.c
1000
ios-deploy.c
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ios-deploy",
|
||||
"version": "1.0.3",
|
||||
"description": "launch iOS apps iOS devices from the command line (Xcode 4)",
|
||||
"version": "1.0.8",
|
||||
"description": "launch iOS apps iOS devices from the command line (Xcode 5)",
|
||||
"main": "ios-deploy",
|
||||
"scripts": {
|
||||
"preinstall": "make ios-deploy"
|
||||
|
||||
Reference in New Issue
Block a user