38 Commits
1.0 ... 1.0.7

Author SHA1 Message Date
Shazron Abdullah
4f9afb7499 Update version to 1.0.7 2014-05-09 16:53:41 -07:00
Shazron Abdullah
f7283216ef Merge pull request #35 from wjywbs/remove-app
Fixes #35 - Add uninstall feature.
2014-05-09 16:51:37 -07:00
wjywbs
cfb086ee44 Add uninstall feature. 2014-05-09 16:02:51 -04:00
Shazron Abdullah
9e52fd16d7 Added CONTRIBUTING file 2014-05-01 23:11:25 -07:00
Shazron Abdullah
6c42fd3cf9 Merge pull request #33 from Unity-Technologies/master
Fix for lldb's "^D" and "quit" spam when running without a terminal.
2014-04-29 17:35:50 -07:00
Julius Trinkunas
3ee1bca513 Stop lldb's "^D" and "quit" spam in a non terminal environment. 2014-04-29 14:33:00 +03:00
Julius Trinkunas
0a9418a564 Add friendly message for code-signing check fails. 2014-04-29 14:33:00 +03:00
Shazron Abdullah
72e83d06e1 Merge pull request #27 from oNaiPs/better_sdk_makefile
Better sdk makefile
2014-04-03 12:35:22 -07:00
Shazron Abdullah
bab1d5bded Merge pull request #26 from oNaiPs/fix_402653028_error
Added version to Info.plist file, fixes -402653028 error
2014-04-03 12:34:40 -07:00
Jose Pereira
f0d5d58a8b Separated sdk version from full path, easier to set after updates 2014-04-03 11:45:57 -07:00
Jose Pereira
8fc098a877 Added version to Info.plist file, fixes -402653028 error 2014-04-03 11:42:57 -07:00
Shazron Abdullah
bad5fe321b Merge pull request #25 from Unity-Technologies/master
Fix exiting and propagate app exit code in non interactive mode.
2014-04-02 10:35:05 -07:00
Julius Trinkunas
79c4cc5c6a Fix exiting and propagate app exit code in non interactive mode. 2014-04-01 16:20:14 +03:00
Shazron Abdullah
f54f67c418 Added the two new flags from 1.0.6 to the README 2014-03-27 15:32:19 -07:00
Shazron Abdullah
f1a2c40566 Increment version to 1.0.6 2014-03-27 15:11:35 -07:00
Shazron Abdullah
c92682d148 Merge pull request #22 from Unity-Technologies/master
Add non interactive mode.
2014-03-27 12:35:25 -07:00
Julius Trinkunas
08f3b92306 Fix hangup when launching from scripts. 2014-03-27 16:14:14 +02:00
Julius Trinkunas
a4f3c2c84b Add non interactive mode. 2014-03-26 19:13:48 +02:00
Julius Trinkunas
a3a99e6553 Remove python wrapper shell. 2014-03-26 18:59:01 +02:00
wjywbs
7f2231bd39 Read port number in command line to debug app in multiple devices. 2014-03-24 14:37:03 -07:00
Shazron Abdullah
ad7c97d01f Updated version to 1.0.5 2014-03-20 17:03:52 -07:00
Shazron Abdullah
fa88a73a9a Fixes #20 - lldb startup super-slow unless ios-deploy.c is edited to match exact xcode version 2014-03-20 17:00:32 -07:00
Shazron Abdullah
83150622c2 Merge pull request #13 from zgramana/master
Fixes phonegap/ios-deploy#8.
2013-12-13 16:34:43 -08:00
Zachary Gramana
42f41798a6 Fixes phonegap/ios-deploy#8. 2013-12-13 16:02:14 -08:00
Shazron Abdullah
486d0d92e0 Merge pull request #12 from zgramana/master
Enabled LLDB interactive session. Perf improvement.
2013-12-12 13:39:43 -08:00
Zachary Gramana
c97735aaee Added back support for -n/--nostart option. 2013-12-10 11:18:13 -08:00
Zachary Gramana
d7c38e9e9f Enabled LLDB interactive session. Perf improvement. 2013-12-09 17:59:19 -08:00
Shazron Abdullah
6f78fbc5f3 Update README.md 2013-10-25 15:43:59 -07:00
Shazron Abdullah
3854bc429a Updated version to 1.0.4 2013-10-22 14:12:30 -07:00
Shazron Abdullah
2c99d25d53 Added -V, --version option 2013-10-22 14:10:52 -07:00
Shazron Abdullah
1fe3ce5244 Updated README 2013-10-22 14:01:00 -07:00
Shazron Abdullah
017b85e4e8 Use lldv instead of gdb debugger
from 621f67bd2d
2013-10-22 13:54:23 -07:00
Shazron Abdullah
79aff2586a Interim checkin for issue #5 to make it compile (still has runtime errors IndexError: list index out of range) 2013-09-19 14:31:56 -07:00
Shazron Abdullah
88db2f0555 v1.0.3 - support npm uninstall 2013-07-29 15:52:34 -07:00
Shazron Abdullah
ea8e9dd53b Updated version to 1.0.2 2013-07-27 00:37:26 -07:00
Henrik Nilsson
512e741f8b Use xcode-select to locate gdb binary.
Gdb command change from finish to continue and quit (from @HenrikNilsson)
2013-07-27 00:34:05 -07:00
Shazron Abdullah
8990de9566 Updated Makefile to install 'Latest' symlink (#2) 2013-07-27 00:27:11 -07:00
Shazron Abdullah
41165f433a Added package.json for npm install 2013-07-21 12:58:34 -07:00
7 changed files with 853 additions and 243 deletions

31
CONTRIBUTING.md Normal file
View 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.

View File

@@ -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>

View File

@@ -1,5 +1,8 @@
IOS_CC = gcc
IOS_SDK = /Applications/Xcode.app/Contents/Developer/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
@@ -10,17 +13,23 @@ 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
install: ios-deploy
symlink:
cd $(DEVICE_SUPPORT); ln -sfn "`find . -type d -maxdepth 1 -exec basename {} \; | tail -1`" Latest
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

View File

@@ -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
* ------------------------------------------------------------------------- */

View File

@@ -10,10 +10,22 @@ 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
-V, --version print the executable version
## Demo

File diff suppressed because it is too large Load Diff

20
package.json Normal file
View File

@@ -0,0 +1,20 @@
{
"name": "ios-deploy",
"version": "1.0.7",
"description": "launch iOS apps iOS devices from the command line (Xcode 5)",
"main": "ios-deploy",
"scripts": {
"preinstall": "make ios-deploy"
},
"bin" : "./ios-deploy" ,
"repository": {
"type": "git",
"url": "https://github.com/phonegap/ios-deploy"
},
"keywords": [
"ios-deploy",
"deploy to iOS device"
],
"author": "Greg Hughes",
"license": "GPLv3"
}