Commit Graph

111 Commits

Author SHA1 Message Date
Eloy Durán
33effd9154 [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-11-07 19:27:13 +01:00
Watson
74fa174b67 [sim] return non 0 as exit code if "rake spec" crashed 2014-11-07 09:54:27 +09:00
Watson
7ade086d20 [sim] clean up around "no_continue" 2014-09-12 22:19:35 +09:00
Watson
a16a66c015 fix a bug where `rake debug=1' freezes lldb with Xcode 6 GM
http://hipbyte.myjetbrains.com/youtrack/issue/RM-597

if give lldb commands file using "-s" option,
looks like "run" command freezes lldb.
2014-09-12 21:49:07 +09:00
Eloy Durán
a7e48f6191 [sim] lololol guy died, long live nyancat HD! 2014-09-01 14:39:27 +02:00
Eloy Durán
9e3b2e11dd [sim] Ensure that only the main Simulator window is recognised.
Ignoring other windows such as an external display.
2014-08-15 16:55:28 +02:00
Eloy Durán
8b0f0da9c5 [sim] Recognise iOS 8 simulator window.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-522.
2014-08-15 16:29:42 +02:00
Watson
9e0c2b53c2 [iOS8] launch a simulator which match version of SDK
http://hipbyte.myjetbrains.com/youtrack/issue/RM-557
2014-08-15 16:47:56 +09:00
Watson
ef651f7100 not forward signal to LLDB in order to exhibit LLDB prompt
http://hipbyte.myjetbrains.com/youtrack/issue/RM-532
2014-07-09 16:56:01 +09:00
Watson
2217d16eb8 reduce memory leak which caused by moving mouse cursor
So far, REPL prompt was updated via refresh_repl_prompt() even if the mouse cursor was just moved.
And, refresh_repl_prompt() evaluate the expression.

Every REPL expression causes memory leaks. (http://hipbyte.myjetbrains.com/youtrack/issue/RM-392)
This changing reduces memory leak.
2014-06-09 09:47:46 +09:00
Watson
a6d698fc8c [sim] be able to select iOS simulator device 2014-06-07 09:18:44 +09:00
Watson
8b7001637a [sim] fix where detecting Xcode6
SimDevice is added since Xcode6.
2014-06-07 09:16:14 +09:00
Laurent Sansonetti
b5641a95a8 fix sim launcher with xcode 6 (thanks watson) 2014-06-03 13:14:28 -07:00
Laurent Sansonetti
f85340a378 locate private framework in SharedFrameworks directory if needed (xcode 6) 2014-06-02 22:28:02 -07:00
Eloy Durán
145033f4a4 Revert "fix a bug which simulator use high CPU usage if app cannot respond"
This change made normal usage of the REPL when trying to select a view
very slow. Needs a better fix after the 2.25 release.

This reverts commit 5b1398c796.

Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-458.
2014-04-07 18:07:42 +02:00
Watson
5b1398c796 fix a bug which simulator use high CPU usage if app cannot respond
http://hipbyte.myjetbrains.com/youtrack/issue/RM-458

repl_fd is non-blocking socket.

If app cannot respond with heavy work load,
it caused a infinity loop without waiting in
9d7ac6b8fc/bin/sim.m (L714-L720)
2014-03-31 22:50:22 +09:00
Watson
9d7ac6b8fc shouldn't use Objective-C literal for 10.7 Lion
http://hipbyte.myjetbrains.com/youtrack/issue/RM-454

Maybe, Objective-C literal will support 10.8 Mountain Lion or later
2014-03-27 23:16:28 +09:00
Eloy Durán
04bc042223 [sim] Don't make the sim app active when background_fetch=1. 2014-03-03 15:39:09 +01:00
Eloy Durán
5c559dff61 [sim] Leave warning the user up to the REPL itself. 2014-03-03 14:53:54 +01:00
Eloy Durán
97bdfba465 [sim] Add background_fetch env var to launch iOS app in background.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-340
2014-02-27 18:33:28 +01:00
Eloy Durán
753d7eb1ae [sim] Only get window metrics for the REPL if the (sim) app is active.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-387
2014-02-27 17:11:08 +01:00
Eloy Durán
086d232ba0 [REPL/OSX] Make it work when codesigned and sandboxed.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-410
2014-02-04 14:13:43 +01:00
Eloy Durán
f6b145b495 [sim] Get simulated app PID as int instead of NSNumber.
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-371
2014-01-06 12:40:34 +01:00
Laurent Sansonetti
bd8536dbcc libmacruby -> librubymotion 2013-12-24 18:25:19 +01:00
Laurent Sansonetti
befb73f73d better message 2013-12-21 11:46:31 +01:00
Watson
9bf407e413 [sim] display message instead of assert with Xcode 4 2013-12-21 11:36:23 +09:00
Eloy Durán
12cf8353fe [sim] Get simulated app PID as int instead of NSNumber.
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
2013-12-20 15:09:53 +01:00
Eloy Durán
6b75ce9014 [sim] Make app launch again with Xcode 5.1.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
2013-12-20 15:09:42 +01:00
Eloy Durán
da14a8b0eb [REPL] Use DEBUG_SIM_WINDOW_OFFSETS to print what sim is recognized. 2013-11-11 17:40:45 +01:00
Eloy Durán
80fd09c608 [REPL] Document inset macro. 2013-11-09 01:42:18 +01:00
Eloy Durán
2250d3ca46 [REPL] Properly name inset macro. 2013-11-09 01:38:27 +01:00
Eloy Durán
07c17769ef [REPL] Cover devices I can test on non-retina mac and handle landscape. 2013-11-09 01:34:56 +01:00
Eloy Durán
c7688dd2ff [REPL] No longer ask user to scale to 50% in Retina mode. 2013-11-08 18:52:49 +01:00
Eloy Durán
dceb65c6f2 [REPL] Take orientation into account when offsetting thick borders. 2013-11-08 18:36:59 +01:00
Eloy Durán
1c151523d7 Merge branch 'master' into repl 2013-11-08 13:28:15 +01:00
Eloy Durán
2e9f7d0495 [REPL] Apply proper insets for all thick borders except iPad Retina. 2013-11-07 19:27:53 +01:00
Eloy Durán
350a3a09f8 [REPL] Recognize thick borders for all devices except iPad Retina. 2013-11-07 18:51:40 +01:00
Eloy Durán
c192ddb154 Small cleanup. 2013-11-07 16:57:10 +01:00
Eloy Durán
4f0b155741 [REPL] Always update windows bounds in sim.
This ensures the user can switch the iOS device scale without having to
restart the REPL.
2013-11-07 16:54:22 +01:00
Eloy Durán
3ffcbe1d54 [REPL] Report relative geometry from sim, taking scale factor out of equation. 2013-11-06 18:25:03 +01:00
Watson
3386dd113f split the source code for RMTask 2013-11-06 12:57:47 +09:00
Eloy Durán
5653716744 [sim] Recognize 64-bit 4-inch iPhone simulator window. 2013-11-05 19:15:39 +01:00
Laurent Sansonetti
edcdf29ed6 ship only one libmacruby-repl.dylib file per platform, the one that has been built with the lowest deployment target (4.3 for ios and 10.7 for osx) 2013-10-30 23:54:57 +01:00
Laurent Sansonetti
90f6e7e83c use NSTask to launch osx apps 2013-10-30 12:53:14 +01:00
Laurent Sansonetti
396636f69f [OSX] fix default lldb commands 2013-10-29 17:51:27 +01:00
Laurent Sansonetti
e7005f1779 [OSX} launch /usr/bin/lldb in case /usr/bin/gdb does not exist 2013-10-29 15:37:54 +01:00
Eloy Durán
ac34d37b06 [sim] Although it's not leaking in practice, add -[RMTask dealloc] nonetheless. 2013-10-28 11:56:19 +01:00
Eloy Durán
e6d56cb167 [10.9] NSTask is unable to launch lldb. Replace with custom task for now.
It appears that NSTask was re-written on 10.9 and others have similar
issues as well. E.g. https://devforums.apple.com/message/863811#863811.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-295.
2013-10-25 20:00:53 +02:00
Laurent Sansonetti
41d5acbb1b better messages 2013-08-25 14:57:55 +02:00
Watson
af3678071d fix mouse over feature, now it works in 50 % window scale. 2013-08-25 15:25:09 +09:00