Skip to content

Instantly share code, notes, and snippets.

@ddrscott
Last active December 13, 2015 16:59
Show Gist options
  • Save ddrscott/4944769 to your computer and use it in GitHub Desktop.
Save ddrscott/4944769 to your computer and use it in GitHub Desktop.
RubyMotion parser crash. env => OSX 10.8.2, RubyMotion 1.32, Xcode 4.6
~/code/test_quick_dialog: rake
Build ./build/iPhoneSimulator-6.1-Development
Build vendor/Pods
Stack dump:
0. :4:1: current parser token 'void'
/System/Library/BridgeSupport/ruby-1.8/bridgesupportparser.rb:960: [BUG] Segmentation fault
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
rake aborted!
Command failed with status (): [RUBYOPT='' /usr/bin/gen_bridge_metadata --...]
/Library/RubyMotion/lib/motion/project/config.rb:713:in `gen_bridge_metadata'
/Library/RubyMotion/lib/motion/project/vendor.rb:180:in `block in build_xcode'
/Library/RubyMotion/lib/motion/project/vendor.rb:132:in `chdir'
/Library/RubyMotion/lib/motion/project/vendor.rb:132:in `build_xcode'
/Library/RubyMotion/lib/motion/project/vendor.rb:41:in `build'
/Library/RubyMotion/lib/motion/project/builder.rb:57:in `block in build'
/Library/RubyMotion/lib/motion/project/builder.rb:56:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:56:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:72:in `build'
/Library/RubyMotion/lib/motion/project.rb:51:in `block (2 levels) in <top (required)>'
/Users/spierce/.rvm/gems/ruby-1.9.3-p125@bruno_ios/bin/ruby_noexec_wrapper:14:in `eval'
/Users/spierce/.rvm/gems/ruby-1.9.3-p125@bruno_ios/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => default => simulator => build:simulator
(See full trace by running task with --trace)
Pod::Spec.new do |s|
s.name = 'QuickDialog'
s.version = '0.7'
s.platform = :ios
s.license = 'Apache License, Version 2.0'
s.summary = 'Quick and easy dialog screens for iOS.'
s.homepage = 'http://escoz.com/quickdialog'
s.author = { 'Eduardo Scoz' => '[email protected]' }
s.source = { :git => 'https://github.com/escoz/QuickDialog.git', :tag => '0.7' }
s.description = 'QuickDialog allows you to create HIG-compliant iOS forms for your apps without ' \
'having to directly deal with UITableViews, delegates and data sources. Fast ' \
'and efficient, you can create forms with multiple text fields, or with ' \
'thousands of items with no sweat!'
s.source_files = 'quickdialog'
s.requires_arc = true
s.frameworks = 'MapKit', 'CoreLocation'
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
file.puts(%{#ifdef __OBJC__\n#import "QuickDialog.h"\n#endif})
end
end
end
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'motion-cocoapods'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'test_quick_dialog'
app.pods do
pod 'QuickDialog', :podspec => 'QuickDialog-0.7.podspec'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment