我使用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)
答案 0 :(得分:1)
尝试跑步:
rake clean
或者
打开XCode goto首选项>下载>组件和安装5.1 Stimulator如果未安装。然后在你的Rakefile集中
app.sdk_version = "5.1"