我今天刚刚使用RubyMotion和Joybox。
安装了RubyMotion 2.22和Joybox 1.1.1(在Mac OS X 10.9上使用rvm 1.25.15,ruby 2.0.0-p353@joybox),继续使用Joybox第1轮文章,在'动作创建 - 之后-template = joybox-ios test01'和'rake',我一直收到这个错误:
无法定义方法vertices' because no Objective-C stub was pre-compiled for types
^ {CGPoint = ff} @:'。确保正确链接定义此消息的框架或库。
我花了几个小时在网上搜索但仍无法找到解决方案。我想知道有人能给我一些见解吗?
我尝试的事情:
重新安装了xcode命令行工具。
删除/重新安装了Joybox gem。
重新安装RubyMotion
谢谢,
- 长
答案 0 :(得分:1)
我更新到RubyMotion的2.22版本,这对我来说也是同样的问题。
降级RubyMotion
sudo motion update --cache-version=2.20
并将你的rubymotion设置为$:.unshift("/Library/RubyMotion2.20/lib")
在你Rakefile。