Commit Graph

366 Commits

Author SHA1 Message Date
Chris Radford
785fd65d59 Update to add new status bar style
Added UIStatusBarStyleLightContent as an option for status_bar_style, a new option added in iOS7.
2013-08-07 20:31:47 +09:00
Laurent Sansonetti
2ee0de0747 support pure NSExceptions 2013-07-30 14:59:25 +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
Clay Allsopp
ed0fcf5455 Fix shell escaping for file names 2013-07-24 23:04:07 +09:00
Watson
6164f93ed8 improve the build system in order to compile spec files with parallel 2013-07-24 21:48:11 +09:00
Laurent Sansonetti
aa668c58a7 fix wording + style 2013-07-22 20:24:04 +02:00
Laurent Sansonetti
59e829527e fix wording 2013-07-22 20:19:06 +02:00
Watson
81e6ee5666 show the message that crash log might have been created 2013-07-23 02:30:56 +09:00
Watson
1795f11a0f move `rake crashlog' task into project.rb 2013-07-22 20:18:18 +09:00
Watson
83764c4c07 add `rake crashlog' task to show a last crash log
http://hipbyte.myjetbrains.com/youtrack/issue/RM-208
2013-07-22 14:41:55 +09:00
Watson
3b75fb79ee fix a bug in build system where app does not work on iOS5 device
http://hipbyte.myjetbrains.com/youtrack/issue/RM-221

The compile flags for device are missing.
This bug was introduced by 2617e9a3e4
2013-07-20 12:32:55 +09:00
Laurent Sansonetti
e0aca0e09e remove default exception handlers in main() 2013-07-19 18:05:19 +02:00
Watson
3d6ac4fea6 fix warning message where it would display "ld: warning: ObjC object file xxxx"
The warning message will be displayed when use Xcode 5 even if deployment_target is not iOS 7.
This will fix c2fc9959ed

% rake
     Build ./build/iPhoneSimulator-6.1-Development
   Compile ./app/app_delegate.rb
    Create ./build/iPhoneSimulator-6.1-Development/hello.app
      Link ./build/iPhoneSimulator-6.1-Development/hello.app/hello
ld: warning: ObjC object file (./build/iPhoneSimulator-6.1-Development/objs/init.o) was compiled for iOS Simulator, but linking for MacOSX
2013-07-13 13:04:46 +09:00
Andrew Babichev
6ae8b7b23e String deployment_target and sdk_version comparison fix 2013-07-13 12:05:44 +09:00
Watson
a8a76ad537 fix where it does not generate 64bit type into brigesupport in 3rd-party library on MacOSX platform
http://hipbyte.myjetbrains.com/youtrack/issue/RM-192
2013-07-10 11:03:39 +09:00
Watson
f388e17d47 fix a bug where `rake' command would re-launch an iOS 7 simulator every time
iOS 7 has only retina simulator and com.apple.iphonesimulator indicates "iPhone Retina (4-inch)" as default.
So, we need to use retina even if it does not configure ENV['retina']
2013-07-09 20:42:16 +09:00
Laurent Sansonetti
9416484344 Merge branch 'master' of github.com:lrz/RubyMotion 2013-07-04 15:13:15 +02:00
Laurent Sansonetti
1047948afc rake build now honors the 'keep_temps' env variable, if set, llvm bitcode and asm files will not be deleted from the build directory 2013-07-04 15:11:36 +02:00
Watson
2948cc2a29 fix a bug where it could not build the 3rd-party library if file path of app contains the spaces
http://hipbyte.myjetbrains.com/youtrack/issue/RM-191
2013-07-03 13:29:20 +09:00
Katsuyoshi Ito
30aa719082 to setup controller using block.
I implemented @colinta 's idea which was discussed below link.
https://groups.google.com/d/msg/rubymotion/M9T6LybaEUs/AWip_Vwy5_4J

When you want to setup UIViewController, you can setup it in a block of tests method.

# Example
  describe MyViewController do

    tests MyViewController do |controller|
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-30 13:00:52 +09:00
Watson
401137639b add the target 2013-06-29 13:48:27 +09:00
Watson
56a4a9381f fix where `rake retina=3.5' does not work with Xcode 5 DP-2 2013-06-29 13:29:39 +09:00
Gant
e4aa4bef9b Created a smaller default image 2013-06-28 19:52:01 +09:00
Watson
1d19b3be22 fix a bug in `rake device' where it could not build app which has target to less than iOS 7.0
http://hipbyte.myjetbrains.com/youtrack/issue/RM-182

add `-stdlib=libstdc++' for linker
2013-06-26 14:51:25 +09:00
Watson
484aca3a66 Revert "fix a bug in `rake device' where it could not build app which has target to less than iOS 7.0"
This reverts commit d3e1ebac00.
2013-06-26 14:49:39 +09:00
Watson
d3e1ebac00 fix a bug in `rake device' where it could not build app which has target to less than iOS 7.0
http://hipbyte.myjetbrains.com/youtrack/issue/RM-182

add `-stdlib=libstdc++' for linker
2013-06-26 12:41:42 +09:00
Laurent Sansonetti
e3b1e9de5d add android project template (work in progress) 2013-06-25 16:16:15 +02:00
Kristian Freeman
d193d6dd4b Adds a check in the rake clean process for nib/xib existence.
Fixes #78 by checking for the existence of a xib when attempting to clean a nib file. If a xib file exists, delete the nib; otherwise, delete it.
2013-06-23 16:57:12 +09:00
Watson
64abb061e6 fix warning message where it would display "warning: no debug symbols in executable (-arch i386)" 2013-06-23 15:44:15 +09:00
Watson
2617e9a3e4 fix warning message where it would display "ld: warning: ObjC object file (./build/iPhoneSimulator-7.0-Development/objs/init.o) was compiled for iOS Simulator, but linking for MacOSX"
use "-mios-simulator-version-min" instead of "-miphoneos-version-min"
2013-06-23 15:43:23 +09:00
Laurent Sansonetti
0993cb0cec move resources_dirs into the main config object 2013-06-19 12:40:18 +02:00
Colin T.A. Gray
24b7c9b128 fix the bug in output=colorized which cause a syntax error with system default Ruby1.8 2013-06-17 09:07:29 +09:00
Colin T.A. Gray
cb3d1438dc adds output=colorized option 2013-06-17 08:20:15 +09:00
Colin T.A. Gray
11830eade4 added Clay's 'exclude_from_detect_dependencies' feature 2013-06-17 08:14:05 +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
Katsuyoshi Ito
c2e4ee81f1 add callback after created controller.
Sometimes view controller has a data.
The controller was set as a root view controller to the window before called "before" block.
But a data is not set at this point.
The view controller access to nil, and crash sometime even if I set a data in "before" block.

After created controller it will call the specified callback method if you set :after_created option

# Example
  describe MyViewController do

    tests MyViewController, after_created: :after_created_controller

    def after_created_controller controller
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-17 07:57:44 +09:00
Matt Garriott
cf160714e4 Fix build expression for Xcode 3.x 2013-06-17 07:52:44 +09:00
Watson
eccdd1b3e7 refactor #92 2013-06-17 07:33:01 +09:00
Gant
84c1f42632 Adding git repo ability for templates 2013-06-17 07:32:25 +09:00
Laurent Sansonetti
b27e896ec1 define RUBYMOTION_ENV earlier 2013-06-13 16:18:24 +02:00
Laurent Sansonetti
22cc5b206f use llvm-gcc for .rb compilation, retrieve compilers from stable Xcode (in the meantime we really migrate to clang) 2013-06-11 20:27:49 +02:00
Laurent Sansonetti
ce3cf2fa51 add support for manifest plist file (ios only) 2013-06-09 20:28:20 +02:00
Laurent Sansonetti
acbd659388 allow hash keys to be symbols 2013-06-09 20:28:01 +02:00
Laurent Sansonetti
4f9dfe1402 remove app.sim_args and use args env variable instead 2013-06-09 16:51:48 +02:00
Laurent Sansonetti
b1c28d9c75 app.vendor_project(:xcode) now rebuilds the project in case a file changed 2013-06-09 13:33:13 +02:00
Laurent Sansonetti
d8735c2fbf OSX: add LSMinimumSystemVersion plist key 2013-06-09 12:36:10 +02:00
Watson
8b12250559 [OSX] fix a bug where it is not possible to submit app to Mac App Store
We have to do the code sign twice to submit app

1. code sign to app with
  "3rd Party Mac Developer Application: XXX"

2. code sign to pkg with
  "3rd Party Mac Developer Installer: XXX"
2013-06-09 17:14:42 +09:00
Laurent Sansonetti
15e9990a62 added embedded frameworks support (OSX-only) 2013-06-08 14:41:45 +02:00
Watson
6f47126442 update the message and remove `exit' 2013-06-08 00:41:35 +09:00