Skip to content

Instantly share code, notes, and snippets.

@amazedkoumei
Created April 24, 2013 11:54
Show Gist options
  • Save amazedkoumei/5451578 to your computer and use it in GitHub Desktop.
Save amazedkoumei/5451578 to your computer and use it in GitHub Desktop.
rubymotion error when using motion-cocoapods
bundle exec rake retina=true
Could not find rake-10.0.4 in any of the sources
Run `bundle install` to install missing gems.
Build ./build/iPhoneSimulator-6.1-Development
Build vendor/Pods
Compile ./app/md_edit_view_controller.rb
Link ./build/iPhoneSimulator-6.1-Development/markdownbox.app/markdownbox
Create ./build/iPhoneSimulator-6.1-Development/markdownbox.app/Info.plist
Create ./build/iPhoneSimulator-6.1-Development/markdownbox.app/PkgInfo
Create ./build/iPhoneSimulator-6.1-Development/markdownbox.dSYM
Simulate ./build/iPhoneSimulator-6.1-Development/markdownbox.app
(main)> 2013-04-24 20:51:37.322 markdownbox[80447:c07] md_edit_view_controller.rb:15:in `block in viewDidLoad': uninitialized constant MDEditViewController::MMMarkdown (NameError)
from md_edit_view_controller.rb:9:in `viewDidLoad'
from app_delegate.rb:8:in `application:didFinishLaunchingWithOptions:'
2013-04-24 20:51:37.335 markdownbox[80447:c07] *** Terminating app due to uncaught exception 'NameError', reason: 'md_edit_view_controller.rb:15:in `block in viewDidLoad': uninitialized constant MDEditViewController::MMMarkdown (NameError)
from md_edit_view_controller.rb:9:in `viewDidLoad'
from app_delegate.rb:8:in `application:didFinishLaunchingWithOptions:'
'
*** First throw call stack:
(0x1bbe012 0x394e7e 0x1b6084 0x2c02 0x2615 0x1)
libc++abi.dylib: terminate called throwing an exception
source "https://rubygems.org"
gem "bubble-wrap", :require => "bubble-wrap/all"
gem "motion-testflight"
#gem "cocoapods", "0.16.4"
#gem "cocoapods", "0.17.1"
gem "cocoapods"
#gem "motion-cocoapods"
#gem "motion-cocoapods", "1.2.2"
gem "motion-cocoapods", "1.3.0.rc1"
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'bundler/setup'
Bundler.require
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'markdownbox'
#app.frameworks << "MMMarkdown"
app.pods do
#pod 'Bypass'
#pod 'STLOAuth'
pod "MMMarkdown"
end
end
➜ tree vendor/Pods
vendor/Pods
├── BuildHeaders
│   └── MMMarkdown
│   └── MMMarkdown.h -> ../../MMMarkdown/include/MMMarkdown.h
├── Documentation
│   └── MMMarkdown
├── Headers
│   └── MMMarkdown
│   └── MMMarkdown.h -> ../../MMMarkdown/include/MMMarkdown.h
├── MMMarkdown
│   ├── README.md
│   ├── include
│   │   └── MMMarkdown.h
│   └── lib
│   └── libMMMarkdown-iOS.a
├── Pods-Acknowledgements.markdown
├── Pods-Acknowledgements.plist
├── Pods-prefix.pch
├── Pods-resources.sh
├── Pods.bridgesupport
├── Pods.xcconfig
├── Pods.xcodeproj
│   ├── project.pbxproj
│   ├── project.xcworkspace
│   │   ├── contents.xcworkspacedata
│   │   └── xcuserdata
│   │   └── takeo_yamaji.xcuserdatad
│   │   └── UserInterfaceState.xcuserstate
│   └── xcuserdata
│   └── takeo_yamaji.xcuserdatad
│   └── xcschemes
│   ├── Pods.xcscheme
│   └── xcschememanagement.plist
├── PodsDummy_Pods.m
├── Resources
├── build
│   └── Pods.build
│   └── Release-iphonesimulator
│   └── Pods.build
│   ├── Objects-normal
│   │   └── i386
│   │   ├── Pods.LinkFileList
│   │   ├── PodsDummy_Pods.d
│   │   ├── PodsDummy_Pods.dia
│   │   └── PodsDummy_Pods.o
│   ├── Pods-all-target-headers.hmap
│   ├── Pods-generated-files.hmap
│   ├── Pods-own-target-headers.hmap
│   ├── Pods-project-headers.hmap
│   ├── Pods.dep
│   ├── Pods.hmap
│   ├── Pods~.dep
│   ├── build-state.dat
│   └── build-state~.dat
└── build-iPhoneSimulator
└── libPods.a
24 directories, 31 files
# -*- coding: utf-8 -*-
class MDEditViewController < UIViewController
def viewDidLoad()
super
navigationItem.title = "hoge"
view.backgroundColor = UIColor.whiteColor
@textView = UITextView.new.tap do |v|
v.frame = view.bounds
error = nil
markdown = "# Example\nWhat a library!"
htmlString = MMMarkdown.HTMLStringWithMarkdown(markdown, error:error)
v.text = htmlString
v.textColor = UIColor.blackColor
view.addSubview(v)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment