question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Undefined symbols for architecture x86_64

See original GitHub issue

Flutter Sound Version :

  • Released or Beta version ? latest

  • Version number ? 5.0.1

  • FULL or LITE flavor ? lite

  • Result of the command “flutter pub deps | grep flutter_sound” (important) |-- flutter_sound_lite 5.0.1


Severity

  • Crash ? N

  • Result is not what expected ? N

  • Cannot build my App ? YES!

  • Minor issue ? N


Platforms you faced the error

  • iOS ? Yes, emulator

  • Android ? N

  • Both ? N

  • Emulator ? Y

  • Real device ? N


Logs

(This is very important. Most of the time we cannot do anything if we do not have information on your bug)

    Undefined symbols for architecture x86_64:
      "___cxa_pure_virtual", referenced from:
          vtable for AudioRecInterface in flutter_sound_lite(AudioRecorder.o)
      "vtable for __cxxabiv1::__si_class_type_info", referenced from:
          typeinfo for AudioRecorderEngine in flutter_sound_lite(AudioRecorder.o)
          typeinfo for avAudioRec in flutter_sound_lite(AudioRecorder.o)
      NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
      "___cxa_begin_catch", referenced from:
          -[FlutterSoundRecorder stopRecorder:] in flutter_sound_lite(AudioRecorder.o)
          ___clang_call_terminate in flutter_sound_lite(AudioRecorder.o)
      "vtable for __cxxabiv1::__class_type_info", referenced from:
          typeinfo for AudioRecInterface in flutter_sound_lite(AudioRecorder.o)
      NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
      "___cxa_end_catch", referenced from:
          -[FlutterSoundRecorder stopRecorder:] in flutter_sound_lite(AudioRecorder.o)
      "operator new(unsigned long)", referenced from:
          -[FlutterSoundRecorder startRecorder:result:] in flutter_sound_lite(AudioRecorder.o)
      "std::terminate()", referenced from:
          ___clang_call_terminate in flutter_sound_lite(AudioRecorder.o)
      "operator delete(void*)", referenced from:
          -[FlutterSoundRecorder startRecorder:result:] in flutter_sound_lite(AudioRecorder.o)
          AudioRecorderEngine::~AudioRecorderEngine() in flutter_sound_lite(AudioRecorder.o)
          avAudioRec::~avAudioRec() in flutter_sound_lite(AudioRecorder.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a
    placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from
    project 'Runner')

Screenshots

(If applicable, add screenshots to help explain your problem). N/A


Describe the bug Cannot compile!

To Reproduce

  1. Install v5.
  2. run flutter run for iOS emulator
  3. see the log 😦

Expected behavior can compile


Additional context**

N/A

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

29reactions
Larpouxcommented, Jun 18, 2020

Yesterday I encountered this problem myself. I fixed it with adding the Linker Flag -lstdc++ in Xcode Build Settings > Other Linker Flags.

Please try this, and reopen this issue this does not work for you. Note: V5 is stable and is probably the best version to be used

1reaction
alamyudicommented, Jun 15, 2020

I’m facing similar issue. but i realized if V5 is not stable version, the creator mention it in https://github.com/dooboolab/flutter_sound#flutter-sound-branches

Read more comments on GitHub >

github_iconTop Results From Across the Web

Undefined symbols for architecture x86_64 - Apple Developer
I'm trying to create an application that sends keystrokes to another process and I keep getting this error: Undefined symbols for architecture x86_64:....
Read more >
[BUG] Undefined symbols for architecture x86_64 ... - GitHub
Platform Operating system and version: mac OS 10.15 (19A583), Xcode 11.3.1,Python 3.7.4 OBS Studio version: the latest source code from ...
Read more >
PHP :: Bug #80769 :: Undefined symbols for architecture x86_64
No no, you're welcome ;-) i use a MacBook Pro mi-2010 with 2,4 GHz Intel Core 2 Duo (P8600). Yes, why the linker...
Read more >
Xcode build failure "Undefined symbols for architecture x86_64"
I am trying to write a very simple console program, that searches for paired BT devices and prints them to an NSLog. It...
Read more >
How To Fix It: Undefined Symbols for Architecture X86_64:
The undefined symbols for architecture x86_64: can be easily fixed by defining a value inside the missing declared statements. This is a common...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found