【问题标题】:How can I resolve the problem which is indicated in this error report?如何解决此错误报告中指出的问题?
【发布时间】:2019-09-12 11:53:40
【问题描述】:

由于我将 Xcode 从 10.1 升级到 10.3 并将 macOS 从 10.13.3 升级到 10.14.6,因此在编译 RubyMotion 应用程序时出现此错误:

Compile ./app/screens/W-WEITERE/MUSTER/navi/MUSTER_navi1_screen.rb
    Create ./build/iPhoneSimulator-12.4-Development/123capisco.app
      Link ./build/iPhoneSimulator-12.4-Development/123capisco.app/123capisco
Undefined symbols for architecture x86_64:
  "_AVAudioSessionCategoryPlayAndRecord", referenced from:
      _MREP_F4CCBE9F6CA44A048FC85F20CD4B251D in audio_module.rb.o
  "_AVEncoderAudioQualityKey", referenced from:
      _MREP_DFCA252F6BE94535B9A066C31BE62CFB in audio_recorder.rb.o
  "_AVFormatIDKey", referenced from:
      _MREP_DFCA252F6BE94535B9A066C31BE62CFB in audio_recorder.rb.o
  "_AVNumberOfChannelsKey", referenced from:
      _MREP_DFCA252F6BE94535B9A066C31BE62CFB in audio_recorder.rb.o
  "_AVSampleRateKey", referenced from:
      _MREP_DFCA252F6BE94535B9A066C31BE62CFB in audio_recorder.rb.o
ld: symbol(s) not found for architecture x86_64
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...]
/Library/RubyMotion/lib/motion/project/builder.rb:392:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:78:in `build'
/Library/RubyMotion/lib/motion/project/template/ios.rb:128:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:239:in `block in <top (required)>'
/Users/daniel0/.rbenv/versions/2.4.2/bin/bundle:23:in `load'
/Users/daniel0/.rbenv/versions/2.4.2/bin/bundle:23:in `<main>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
➜  123capisco git:(master) ✗

【问题讨论】:

    标签: ruby rubymotion


    【解决方案1】:

    问题已解决。 Rakefile 中缺少此代码 app.frameworks += ['AVFoundation']

    【讨论】:

      猜你喜欢
      • 2021-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-23
      • 2021-09-03
      • 1970-01-01
      • 2020-08-21
      • 2019-09-20
      相关资源
      最近更新 更多