Commit Graph

338 Commits

Author SHA1 Message Date
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
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
7361d1a879 fix a bug in detecting file dependencies where it will not detect dependencies if contains nested constants
http://hipbyte.myjetbrains.com/youtrack/issue/RM-160
2013-06-05 14:47:36 +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
47dc87abac Merge branch 'master' of github.com:lrz/RubyMotion 2013-06-01 13:22:53 +09:00
Laurent Sansonetti
be6ce1d449 osx: support for entitlements 2013-06-01 13:22:25 +09:00
Laurent Sansonetti
884b9bbe9f add 'build' task that builds for both modes 2013-06-01 13:20:57 +09:00
Jack Chen (chendo)
dfb38c7333 Use absolute path for CONFIGURATION_BUILD_DIR because when using relative xcodeproj path 2013-05-30 08:27:09 +09:00
Laurent Sansonetti
b022b08281 add 'rake static' task (OSX) 2013-05-29 20:27:38 +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
Watson
e183ad6873 add .gitignore into gem template 2013-05-15 21:49:32 +09:00
Jeremy Ruppel
6fb9560bfb Support leading ".." notation in dependency pathnames 2013-05-15 07:22:45 +09:00
Jeremy Ruppel
6e07a7c746 Print mutated path if a dependency cannot be found 2013-05-15 07:22:39 +09:00
Tom Milewski
39691640ef Correct the path to template.
Users are being notified to require a file ('lib/motion/project/template/ios') that doesn't exist when called from a project's Rakefile.
2013-05-11 22:04:35 +09:00
Devon Blandin
f2000bb03e Update motion require statement in gem template Rakefile 2013-05-11 21:57:53 +09:00
Watson
cc9c4695d7 osx: use NSApplication instead of UIApplication 2013-05-09 21:54:13 +09:00
Laurent Sansonetti
cb4a5876f2 print message from license server upon /latest_software_version 2013-05-08 15:58:49 +02:00
Laurent Sansonetti
d9f670252e osx: add 'rake archive' tasks, refactor the builder archive/codesign code 2013-05-07 16:51:17 +02:00
Watson
0dd3869ff3 fix an error when generate bridgesupport file
Fix the following error:

$ rake --trace
require 'lib/motion/project' is deprecated, please require 'lib/motion/project/template/ios' instead
** Invoke default (first_time)
** Invoke simulator (first_time)
** Invoke build:simulator (first_time)
** Execute build:simulator
RUBYOPT='' /usr/bin/gen_bridge_metadata --format complete --no-64-bit --cflags "  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -miphoneos-version-min=6.1 -D__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__=60100 -I. -I'.'" "TestFlight.h" -o "TestFlight.bridgesupport" -e
Received exception: missing argument: -e:
2013-05-07 13:29:21 +09:00
Laurent Sansonetti
7085fe7264 osx: only build for the native arch in development mode 2013-05-06 19:52:46 +02:00
Laurent Sansonetti
01ad1cd403 osx 'rake spec' task 2013-05-06 15:14:38 +02:00
Watson
8ab36f94f0 abort if build directory is not writable. 2013-05-06 20:33:00 +09:00
Watson
c456aad83b check whether build directory is writable. if it is not writable, use ./build in project directory as in the past 2013-05-06 16:55:24 +09:00
Laurent Sansonetti
5cfe717841 use NSApplicationMain() instead of -[NSApplication run] in order to honor main nib file loading (if it exists) 2013-05-05 20:45:15 +02:00
Laurent Sansonetti
1c09307fd6 move icons, prerendered_icon and fonts to ios config, add icon to osx config 2013-05-05 20:41:39 +02:00
Laurent Sansonetti
112ed84d70 app.vendor_project how honors :bridgesupport_{cflags,exceptions} options 2013-05-05 01:03:52 +02:00
Laurent Sansonetti
993c77fa16 'motion ri' now honors PAGER env variable 2013-05-05 00:54:32 +02:00