ios - Rubymotion:Rake 失败

标签 ios ruby xcode rubymotion

我正在使用 ruby​​ 1.9.3-p484、Xcode 5.1 和 OS X 10.9 Mavericks,在使用 RubyMotion 运行 rake 时出现以下错误。

$ rake
     Build ./build/iPhoneSimulator-7.1-Development
     Build vendor/Pods/NewRelicAgent/NewRelic_iOS_Agent_3.252/NewRelicAgent.framework
      Link ./build/iPhoneSimulator-7.1-Development/Themes.app/Themes
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
      objc-class-ref in NewRelicAgent(NewRelicInternalUtils.o)
  "_deflate", referenced from:
      -[NRHarvesterConnection createPostWithURI:message:] in NewRelicAgent(NRHarvesterConnection.o)
  "_deflateEnd", referenced from:
      -[NRHarvesterConnection createPostWithURI:message:] in NewRelicAgent(NRHarvesterConnection.o)
  "_deflateInit_", referenced from:
      -[NRHarvesterConnection createPostWithURI:message:] in NewRelicAgent(NRHarvesterConnection.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rake aborted!
Command failed with status (1): [/Applications/Xcode.app/Contents/Developer...]

Tasks: TOP => build:simulator
(See full trace by running task with --trace)

最佳答案

尝试运行:

rake clean

或者

打开 XCode,转到 Preferences > Downloads > Components 并安装 5.1 Stimulator(如果未安装)。然后在你的 Rakefile 集中

app.sdk_version = "5.1"

关于ios - Rubymotion:Rake 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22774004/

相关文章:

iphone - 了解 NSCalendar 单位(请像我五岁一样解释)

ios - 你如何打印出核心数据对象?

iOS:强制取消 NSOperationQueue 中的操作

windows - 如何从 ruby​​ 获取 %USERPROFILE%?

Python 在 Ruby 中的枚举?

cocoa - 如何避免XCode框架弱链接问题?

ios - 重复的接口(interface)定义和预期的选择器错误

ruby - 使用 vips (ruby-vips8) 合并多个图像

ios - 单击一个按钮将多个数据行发送到 firebase

xcode - 在 xcode 中打开一个工作区,而不是一个项目