【问题标题】:RubyMotion error: clang Segmentation fault: 11RubyMotion 错误:clang 分段错误:11
【发布时间】:2015-06-22 14:54:15
【问题描述】:

所以决定今天试用 RubyMotion,但第一步出错:(

当我运行“rake device”时,出现以下错误:

→ rake device        
   Build ./build/iPhoneOS-9.0-Development
   Compile ./app/app_delegate.rb
    clang: error: unable to execute command: Segmentation fault: 11
    clang: error: clang frontend command failed due to signal (use -v to see invocation)
    Apple LLVM version 7.0.0 (clang-700.0.53)
    Target: aarch64-apple-darwin14.3.0
    Thread model: posix
    clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
    clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
    rake aborted!
    Command failed with status (254): [/Applications/Xcode-beta.app/Contents/Deve...]
    /Library/RubyMotion/lib/motion/project/builder.rb:153:in `block (2 levels) in build'
    /Library/RubyMotion/lib/motion/project/builder.rb:131:in `each'
    /Library/RubyMotion/lib/motion/project/builder.rb:131:in `block in build'
    /Library/RubyMotion/lib/motion/project/paralel_builder.rb:47:in `call'
    /Library/RubyMotion/lib/motion/project/paralel_builder.rb:47:in `block (2 levels) in initialize'
    Tasks: TOP => device => archive => build:device
    (See full trace by running task with --trace)

有人有什么想法吗? 仅调用 rake 作为模拟器就可以正常工作,但只有在我调用 rake device 时才会出现问题。

【问题讨论】:

    标签: ruby xcode clang rubymotion


    【解决方案1】:

    尝试添加

    app.archs['iPhoneOS'] = ['armv7']
    

    到您的 rake 文件。这为我解决了问题。

    【讨论】:

    • 这已经删除了 clang 分段 .... 错误,现在替换为:error: ApplicationVerificationFailed 我怀疑这可能是 Xcode 相关问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-16
    • 2017-06-25
    • 2017-01-07
    • 1970-01-01
    • 1970-01-01
    • 2012-09-27
    相关资源
    最近更新 更多