Commit Graph

584 Commits

Author SHA1 Message Date
Watson
cf1697e3b4 [iOS8] move embedded_frameworks configurations to xcode_config.rb in order to use OSX and iOS platform
http://hipbyte.myjetbrains.com/youtrack/issue/RM-558
2014-08-20 16:26:53 +09:00
Watson
ada428997d clear xcode_version value when change xcode dir path
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.
2014-08-20 16:26:38 +09:00
Eloy Durán
41c184b34a [Instruments] All instrument templates seem to work with Xcode 6. 2014-08-20 16:26:30 +09:00
Eloy Durán
f96299978c [Instruments] Ensure we only deal with the templates part of the output. 2014-08-20 16:26:21 +09:00
Eloy Durán
a151f34607 [Instruments] Always try to find the instrument CLI tool in the right xcode_dir. 2014-08-20 16:26:11 +09:00
Watson
06d072664d [iOS8] fix a bug which invalid template path would be generated
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>
2014-08-20 16:26:01 +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
d89c734de3 use absolute xcodebuild path to remove "xcodebuild: error" message
http://hipbyte.myjetbrains.com/youtrack/issue/RM-562
2014-08-20 16:25:26 +09:00
Watson
c2da3957d7 add validation into app.vendor_project('xxx', :xcode, ...) because xcodebuild command fails if xcode project directory is not writable 2014-08-20 16:25:04 +09:00
Watson
745a3f942a fix a bug where vendor library contained in gem causes a build error with system bundled ruby
http://hipbyte.myjetbrains.com/youtrack/issue/RM-553
2014-08-20 16:24:48 +09:00
Eloy Durán
6897caa6b7 [osx] Merge all Info.plist data in one place and ensure there's always a principal class. 2014-08-20 16:23:27 +09:00
Eloy Durán
6f7885399a [osx] Allow the user to configure a NSApplication subclass and use that instead.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-539
2014-08-20 16:22:11 +09:00
Watson
223012ea9d 2.31 2014-07-25 00:58:46 +09:00
Watson
1bd57604a4 fix __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ for OSX 10.10
The definition rule of MAC_OS_X_VERSION_10_XX is changed at OS X 10.10
2014-07-25 00:56:23 +09:00
Watson
3bd9c14eb2 2.30 2014-07-03 00:40:53 +09:00
Watson
79a7069707 [OSX] fix a 'not precompiled' error if specify old version as deployment_target on Yosemite
http://hipbyte.myjetbrains.com/youtrack/issue/RM-525
2014-07-03 00:39:49 +09:00
Watson
7fb788fcb9 [OSX] add CoreServices to detect OS X version to convert NSKnownKeysDictionary into NSDictionary 2014-07-03 00:39:33 +09:00
Watson
2789a8f2d8 [OSX] fix a wrong default deployment_target on OS X 10.8
http://hipbyte.myjetbrains.com/youtrack/issue/RM-524

'10.8' should be used as default deployment target on OS X 10.8.
However, '10.9' was used.
2014-07-03 00:38:59 +09:00
Ignacio Piantanida
e25af615d3 [spec] Add spec helpers subdirs to #spec_files.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2014-07-03 00:37:48 +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
9d87e301ab [iOS8] fix device family string in order to select device 2014-07-03 00:36:52 +09:00
Watson
1e71152483 update NEWS 2014-06-05 07:47:47 +09:00
Watson
2a5e701b19 2.29 2014-06-05 07:45:39 +09:00
Watson
4594ba57b7 accept the lower SDK version in `app.deployment_target' on Yosemite 2014-06-05 07:26:29 +09:00
Watson
61232e1b5e should not drop "10.10" from supported sdk version list
This should allow to use "10.10" sdk on Yosemite
2014-06-05 07:26:23 +09:00
Watson
8ad5261b1b 2.28 2014-05-21 22:21:26 +09:00
Laurent Sansonetti
e6e2b9efc6 move app.version from config to xcodeconfig 2014-05-21 22:19:30 +09:00
Laurent Sansonetti
8964a0dfc7 move versionized_build_dir from config to xcodeconfig 2014-05-21 22:19:16 +09:00
Laurent Sansonetti
a4475dc024 move the `rake clear’ logic to platform-specific config files 2014-05-21 22:18:51 +09:00
Laurent Sansonetti
0eea6576f3 move #vendor_project to xcode config 2014-05-16 03:32:46 +09:00
Eloy Durán
e70f2f88e1 [builder] Quote framework search paths to guard against spaces. 2014-05-16 03:30:52 +09:00
Eloy Durán
88255a80d8 [builder] Do not try to compile completely empty .strings files.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-483
2014-05-16 03:30:01 +09:00
Eloy Durán
668b638ba0 Import NEWS file. 2014-04-30 12:50:49 +02:00
Watson
6340ed48ed 2.27 2014-04-30 09:16:06 +09:00
Eloy Durán
380429d9a8 [test] rake spec:all now runs on all installed iOS and OS X sdks. 2014-04-30 09:14:47 +09:00
Eloy Durán
080637b5d2 Merge pull request #155 from HipByte/public
Compile `.strings` files. Closes #154.
2014-04-17 16:45:33 +02:00
Eloy Durán
07c4f8936b [builder] Also compile .strings files inside other bundles. 2014-04-17 16:39:57 +02:00
Hwee-Boon Yar
7e3ca1b929 [builder] Compile .strings resource files as binary plists.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2014-04-17 16:39:47 +02:00
Watson
506f6545f3 Revert "use a cached file dependencies in order to reduce the build time"
This reverts commit ee514286cf.

Now, detecting build order is much faster without cache by previous commit.
So, let's revert this commit.
2014-04-12 13:52:49 +09:00
Watson
0f6fe1149d more reduce the time of detecting build order. Thanks to Ignacio Piantanida for the patch.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466
2014-04-12 13:52:44 +09:00
Watson
a845f0f5cd add comment 2014-04-10 22:31:34 +09:00
Watson
85c2ba6b91 use a cached file dependencies in order to reduce the build time
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
2014-04-10 22:31:26 +09:00
Watson
5108850a5f memorize the calculated file dependencies. Thanks to Ignacio Piantanida for the patch.
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
2014-04-10 22:31:22 +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
33dffaeafb 2.26 2014-04-09 12:16:32 +09:00
Watson
a9938094ac 2.25 2014-04-08 11:40:46 +09:00
Eloy Durán
ff62c9a279 [bacon-ui] Get rid of a false positive warning. 2014-04-08 11:37:59 +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