Watson
116f0bba8a
[RM-766] fix detecting multiple simulator
...
* Launch simulator version which indicated by SDK version.
$ rake device_name='iPhone 5s'
* Launch simulator version which indicated by `target` envronment variable.
$ rake device_name='iPhone 5s' target=8.1
$ rake device_name='iPhone 5s' target=7.1
2015-03-19 13:51:23 +09:00
Watson
a611ae4def
remove __USE_DEVICE_INT__
2015-02-13 12:53:52 +09:00
Watson
9b92afc085
[WatchKit] change UIDeviceFamily value into integer in info.plist in order to launch WachKit app with Xcode 6.2 beta 5
2015-02-13 12:52:50 +09:00
Eloy Durán
54d85ed04e
[iOS] Default to device architecture when debugging.
...
Unless the application does not have a slice for the device's native architecture,
in which case it defaults to an arch that it does contain.
2015-02-05 07:40:22 +09:00
Eloy Durán
d3cb3e7da0
[iOS] Log sim invocation in verbose mode.
2015-01-26 10:30:59 +09:00
Watson
a7e2d90f17
revert deleting i386 for simulator
...
Because simulator of old device type (like 'iPhone 5') needs i386 binary.
If remove i386, it can't launch the app on 'iPhone 5' device.
2015-01-09 10:35:37 +09:00
Watson
2f3f3eee18
remove `i386' at :build:simulator task
2014-12-30 11:07:58 +09:00
Watson
45095e1977
reduce compile time by removing `i386' for iOS simulator
2014-12-30 11:07:42 +09:00
Eloy Durán
248ec511a7
[WatchKit] Honor xcode_dir setting from host app.
...
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-690
2014-12-30 11:02:01 +09:00
Eloy Durán
eae837391d
[WatchKit] Prefer single quotes in Rakefile.
2014-12-12 08:12:29 +09:00
Eloy Durán
24798e8595
[WatchKit] Be sure to find right extension and fail if there is none.
2014-12-12 08:12:20 +09:00
Eloy Durán
f8607cecb5
[iOS rake] Fail fast and fix error message.
2014-12-12 08:11:39 +09:00
Eloy Durán
732d2e20e8
[iOS rake] Add display env var support to watch task. Can be compact or regular.
2014-12-12 08:11:28 +09:00
Eloy Durán
1eaba7dc49
[iOS rake] Rename watch task to watch:simulator and add shortcut and IB TODO.
2014-12-12 08:11:17 +09:00
Eloy Durán
abda204a7f
[WatchKit] Add options to launch different watch app type.
2014-12-12 08:10:17 +09:00
Eloy Durán
2d49d517a8
[WatchKit] Update command options to launch on sim.
2014-12-12 08:10:09 +09:00
Eloy Durán
6895dd6864
[WatchKit] Set breakpoints and take no_continue env variable.
2014-12-12 08:09:14 +09:00
Eloy Durán
8678ed46d6
[WatchKit] Improve rake output.
2014-12-12 08:08:29 +09:00
Eloy Durán
f6ff137e28
[WatchKit] Make verbose vs normal work.
2014-12-12 08:08:19 +09:00
Eloy Durán
6b16f901c5
[WatchKit] Add some more logging.
2014-12-12 08:06:20 +09:00
Eloy Durán
a4638b630f
[WatchKit] Build watch app simply by building full app.
2014-12-12 08:03:36 +09:00
Eloy Durán
3d6b89aa82
[iOS] Use Target#rake to execute Watch app launch task.
2014-12-12 08:00:58 +09:00
Eloy Durán
506b536f85
[WatchKit] Start on launcher task in new location.
2014-12-12 08:00:43 +09:00
Eloy Durán
156e32b6da
[sim] Honour explicit device_name or target specified by user.
...
Specifying both is disallowed, because a device is configured for a specific SDK.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-657
2014-12-12 07:43:05 +09:00
Eloy Durán
355b696676
[rake] Re-instate top-level clean task and refactor into XcodeConfig.
...
Related to:
* 646cbb1918
* bddc880f98
2014-11-05 22:20:10 +09:00
Laurent Sansonetti
4da99bd6e3
don't run spec:device with the debugger
2014-10-15 23:19:03 +09:00
Laurent Sansonetti
1567487ac9
when attaching the debugger to the device, make sure to pass the appropriate arch to the debug server and lldb (which could be arm64)
2014-10-13 23:37:32 +09:00
Eloy Durán
e119c495ed
[Vendor] Use xcodebuild to properly clean.
...
This is needed to solve any cache issues, such as
the dreaded SharedPrecompiledHeaders issue.
See:
* https://github.com/clayallsopp/afmotion/issues/72
* http://openradar.appspot.com/18536864
2014-10-13 23:36:34 +09:00
Eloy Durán
7b12d0cffe
[atos] Prefer binary image in build dir which has symbols pre-extracted and is faster.
...
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-582 .
2014-09-23 16:37:50 +09:00
Eloy Durán
30b6562950
[iOS 8] Only allow device_name option to specify device family and retina etc.
2014-09-01 23:58:57 +09:00
Eloy Durán
41c184b34a
[Instruments] All instrument templates seem to work with Xcode 6.
2014-08-20 16:26:30 +09:00
Watson
a83ff8991d
[iOS8] fix where Instruments does not launch
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-563
Since iOS 8, simulator UUID will be required to launch.
2014-08-20 16:25:45 +09:00
Watson
4550206b47
[iOS8] add "device_name" parameter
...
Usage:
$ rake device_name="iPad Air"
We can use the following device name for iOS 8 simulator.
"iPhone 4s"
"iPhone 5"
"iPhone 5s"
"iPad 2"
"iPad Retina"
"iPad Air"
"Resizable iPhone"
"Resizable iPad"
2014-07-03 00:37:06 +09:00
Watson
c0a64ff66d
fix a build error in environment which uses Ruby 1.8
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-463
2014-04-09 17:28:52 +09:00
Watson
8afefa3e0a
fix a build error when “Resource” is contained as resource directory path
...
This should fix the following case which uses "HTBResources.bundle" as resource.
```
% rake
ERROR! An iOS application cannot be installed if it contains a directory called `resources'. Please rename the directory at path `vendor/Pods/Resources/HTBResources.bundle' to, for instance, `vendor/Pods/Resources/assets'.
````
2014-04-08 11:36:55 +09:00
Watson
27bb7e0a11
fix a bug where nested array cannot be handled
...
it cause an error If app.resources_dirs has nested array
app.resources_dirs << ['Images']
```
% rake
rake aborted!
no implicit conversion of Array into String
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `exists?'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `block in pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `each'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:67:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:122:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
```
2014-04-08 11:36:48 +09:00
Watson
32508cf243
fix build error if resource directory does not exits
...
This bug is introduced by 064672443d
% motion create hello && cd hello
% rm -rf resources
% rake
rake aborted!
No such file or directory @ dir_initialize - ./resources
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `open'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `entries'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `block in pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `each'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:66:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:121:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
2014-04-08 11:36:41 +09:00
Eloy Durán
5f5fbca0c8
[iOS] Fail build if one of the resources is a dir called `Resources'.
...
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-450 .
2014-04-08 11:36:09 +09:00
Laurent Sansonetti
a7c839173c
add magic encoding comments to all ruby source files
2014-03-05 21:35:20 +09:00
Eloy Durán
4e13d3706a
Replace all pretty quotes with ASCII.
2014-03-05 21:34:21 +09:00
Eloy Durán
ae42b81e85
[sim] Fail when launching in BG but not having configured the app.
...
Otherwise this leads to an ugly ‘failed to start’ error.
2014-03-05 12:01:05 +09:00
Eloy Durán
e66855f885
[iOS] The iPad 2 (non-retina) also has iOS 7 support.
2014-03-05 12:00:59 +09:00
Eloy Durán
91b528f451
[rake/iOS] Fail when trying to use retina=false on iOS >= 7.
2014-03-05 11:58:38 +09:00
Eloy Durán
c200211b4e
[rake/iOS] Fail when targeting a sim SDK older than deployment target.
2014-03-05 11:58:29 +09:00
Laurent Sansonetti
89cbd07a25
add 'rake crashlog:device' task, wording/UX is still a work in progress
2013-12-30 23:11:42 +09:00
Eloy Durán
53b7424127
[sim] Get simulated app PID as int instead of NSNumber.
...
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
2013-12-30 23:09:48 +09:00
Eloy Durán
1d7b8b19a9
[sim] Make app launch again with Xcode 5.1.
...
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
2013-12-30 23:09:03 +09:00
Laurent Sansonetti
ab8e73f9d0
only capture stdout if install_only is set (used by the profile task), fixes the output of 'rake device'
2013-11-07 23:13:18 +09:00
Eloy Durán
091b6b399f
Temp work around issue with UIDeviceFamily for release/profile.
...
The Info.plist is forced to be recreated on each build and uses ints for
UIDeviceFamily when profiling and strings otherwise.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-305
2013-11-03 21:16:54 +09:00
Eloy Durán
791a18759b
[profiler] Configure Instruments to optionally launch specific template.
2013-11-02 11:46:41 +09:00