Commit Graph

47 Commits

Author SHA1 Message Date
Watson
402a942918 fix a build error in environment which uses Ruby 1.8
http://hipbyte.myjetbrains.com/youtrack/issue/RM-463
2014-04-09 14:16:02 +09:00
Watson
0f9242dd20 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-03-24 08:29:20 +09:00
Watson
7bb8f69a2e 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-03-23 02:38:06 +09:00
Watson
a4cd4a4cec 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-03-23 00:39:16 +09:00
Eloy Durán
064672443d [iOS] Fail build if one of the resources is a dir called `Resources'.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-450.
2014-03-21 17:07:53 +01:00
Laurent Sansonetti
f29d89f89a add magic encoding comments to all ruby source files 2014-03-05 12:20:20 +01:00
Eloy Durán
8407a1cfc0 Replace all pretty quotes with ASCII. 2014-03-04 19:05:57 +01:00
Eloy Durán
c7a0e3ec72 [sim] Fail when launching in BG but not having configured the app.
Otherwise this leads to an ugly ‘failed to start’ error.
2014-03-03 15:08:07 +01:00
Eloy Durán
b1d6162bc5 [iOS] The iPad 2 (non-retina) also has iOS 7 support. 2014-03-03 12:49:29 +01:00
Eloy Durán
ac0fa61943 [rake/iOS] Fail when trying to use retina=false on iOS >= 7. 2014-02-26 14:22:17 +01:00
Eloy Durán
e06180dbb9 [rake/iOS] Fail when targeting a sim SDK older than deployment target. 2014-02-26 14:03:58 +01:00
Laurent Sansonetti
9f4d9e01c7 add 'rake crashlog:device' task, wording/UX is still a work in progress 2013-12-29 19:55:48 +01: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
Laurent Sansonetti
877ebe99fb only capture stdout if install_only is set (used by the profile task), fixes the output of 'rake device' 2013-11-07 13:19:12 +01:00
Eloy Durán
ae4fe2dddc 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-02 17:14:29 +01:00
Eloy Durán
3207c10cfb [profiler] Configure Instruments to optionally launch specific template. 2013-11-01 14:58:22 +01:00
Eloy Durán
600f727117 [profiler] Replace templates list with hardcoded lists. 2013-11-01 14:58:22 +01:00
Eloy Durán
40e9e8c2e1 [profiler] Add tasks to list available instruments templates. 2013-11-01 14:58:22 +01:00
Eloy Durán
ca1aee4a81 [profiler] Inherit ENV from parent process. 2013-10-31 22:46:27 +01:00
Laurent Sansonetti
b0dabd8291 add 'rake profile' task as a shortcut to 'rake profile:simulator' 2013-10-31 22:08:44 +01:00
Eloy Durán
2b0143e194 Cleanup. 2013-10-31 18:06:45 +01:00
Eloy Durán
19e9bddef3 [profiler] Pass arguments to app on launch. 2013-10-31 17:50:47 +01:00
Eloy Durán
61e9a65534 [profiler] Refactor rake tasks into the Config and Builder classes. 2013-10-31 17:46:22 +01:00
Eloy Durán
5a16a52ad2 [profiler] Add task to start profiling on a iOS device. 2013-10-31 16:01:16 +01:00
Eloy Durán
8f4a6ad27c [profiler] Generate a config plist for Instruments.app 2013-10-31 12:09:12 +01:00
Eloy Durán
572bf257b5 [profiler] Use known paths to tools. 2013-10-28 20:48:59 +01:00
Eloy Durán
afe932b2ab [profiler] Make it a bit more readable. 2013-10-28 20:36:17 +01:00
Eloy Durán
9508d0942a [profiler] Start headless instruments session on running app. 2013-10-28 20:34:58 +01:00
Watson
ff5fb294fc [iOS] fix where non-retina iPad simulator is not launch
if string which indicates to launch iOS simulator for iPad that contains single quotation, (like 'iPad')
non-retina iPad simulator is not launch.
2013-10-07 13:17:28 +09:00
Watson
d2687f2f38 fix a bug in `rake spec' which always return exit(0) status 2013-08-07 22:49:55 +09:00
Laurent Sansonetti
9d95a7211d refactor crash message + fix wording 2013-08-07 15:17:28 +02:00
Watson
bfac409496 fix a bug in debugger where debugging process will be terminated if press CTRL + C while app is running
rake task receives the signal and it is aborted.
And, GDB process remains as zombie process.

So, rake task ignores the SIGINT if debugger is running
2013-07-30 00:54:28 +09:00
Laurent Sansonetti
aa668c58a7 fix wording + style 2013-07-22 20:24:04 +02:00
Watson
81e6ee5666 show the message that crash log might have been created 2013-07-23 02:30:56 +09:00
Clay Allsopp
b4dd043ab3 set spec_mode and distribution_mode without setup 2013-06-17 08:08:08 +09:00
Colin T.A. Gray
313f2470f3 adds 'skip_build' option to 'rake simulater' (ios) and 'rake run' (osx) 2013-06-17 08:05:35 +09:00
Laurent Sansonetti
4f9dfe1402 remove app.sim_args and use args env variable instead 2013-06-09 16:51:48 +02:00
Watson
6f47126442 update the message and remove `exit' 2013-06-08 00:41:35 +09:00
Watson
dcdbf9b4cf display the workaround for tmux users
if use tmux, we need some operation to launch iOS simulator.
2013-06-08 00:24:23 +09:00
Watson
68aaa64360 fix app.sim_args
Because when passed the arguments as following

    app.sim_args += ["-com.apple.CoreData.SQLDebug 1"]

application will receive the argument like

    argv[1] = ["-com.apple.CoreData.SQLDebug
    argv[2] = 1"]

Expected:

    argv[1] = -com.apple.CoreData.SQLDebug
    argv[2] = 1
2013-06-05 05:03:34 +09:00
Laurent Sansonetti
9b178b69af move ctags to basic project rakefile so that it works with osx 2013-05-29 20:15:14 +09:00
Laurent Sansonetti
913ae11077 app.sim_args 2013-05-29 19:21:10 +09:00
Watson
3e075d47c5 add a feature which passing the arguments on launching app 2013-05-28 09:29:14 +09:00
Laurent Sansonetti
d9f670252e osx: add 'rake archive' tasks, refactor the builder archive/codesign code 2013-05-07 16:51:17 +02:00
Laurent Sansonetti
c7152c8143 add osx repl 2013-04-29 21:07:39 +02:00
Laurent Sansonetti
105a915f3d mac port 2013-04-25 02:26:56 +02:00