http://hipbyte.myjetbrains.com/youtrack/issue/RM-566
If change the Xcode dir path via "app.xcode_dir", already cache the @xcode_version value with '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild'.
We cannot retrieve iOS 8 simulator device name from Xcode 5.
So, 'iPhone 4s / iOS 7' simulator is always launched as default.
If specify template with `rake profile template="XXXX"',
it will generate invalid template path which contains unnecessary `"' as following.
<key>XrayTemplatePath</key>
<string>"/Applications/Xcode6-Beta5.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Time Profiler.tracetemplate</string>
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"
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466
* before
% time rake
... snip ...
rake 18.01s user 1.64s system 89% cpu 21.877 total
* after
% time rake
... snip ...
rake 2.74s user 1.41s system 119% cpu 3.460 total
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466
* before
% time rake
... snip ...
rake 38.41s user 2.77s system 101% cpu 40.515 total
* after
% time rake
... snip ...
rake 18.01s user 1.64s system 89% cpu 21.877 total
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'.
````
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)
```
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)