clayallsopp / mixing-objc-ruby

Mixing Objective-C and Ruby with RubyMotion
http://clayallsopp.com/posts/mixing-objective-c-and-ruby/
20 stars 1 forks source link

rake static failing #1

Open ashramsey opened 10 years ago

ashramsey commented 10 years ago

Hi Clay,

Is rake static still useable with rubymotion? I am using version 2.27

I'm getting the following error

Thanks in advance

Ash

Ashs-MacBook-Pro-2:ruby ash$ rake static
require 'motion/project' is deprecated, please require 'motion/project/template/ios' instead
     Build ./build/iPhoneSimulator-7.1-Development
     Build vendor/CYAlert
   Compile vendor/CYAlert/CYAlert.m
   Compile ./app/cy_alert.rb
   Compile ./app/app_delegate.rb
    Create ./build/iPhoneSimulator-7.1-Development/MixingExample.a
     Build ./build/iPhoneOS-7.1-Development
     Build vendor/CYAlert
   Compile vendor/CYAlert/CYAlert.m
   Compile ./app/app_delegate.rb
   Compile ./app/cy_alert.rb
    Create ./build/iPhoneOS-7.1-Development/MixingExample.a
/usr/bin/libtool: for architecture arm64 object: /Library/RubyMotion/data/ios/7.1/iPhoneOS/librubymotion-static.a(array.o) malformed object (unknown load command 1)
rake aborted!
Command failed with status (1): [/usr/bin/libtool -static "/Library/RubyMot...]
/Library/RubyMotion/lib/motion/project/builder.rb:255:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:78:in `build'
/Library/RubyMotion/lib/motion/project/template/ios.rb:225:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:224:in `map'
/Library/RubyMotion/lib/motion/project/template/ios.rb:224:in `block in <top (required)>'
/Users/ash/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/Users/ash/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => static
(See full trace by running task with --trace)
clayallsopp commented 10 years ago

Whoa, this seems weird - looks to be failing because of 64bit? Please file an issue with HipByte (linking to this ticket) with motion support

Sorry for the problems!

ashramsey commented 10 years ago

Done. Thanks!