2014年7月29日 星期二

[Xcode] Fixed: _CMAudioFormatDescriptionGetStreamBasicDescription", referenced from: -[captureNSObject init] in captureNSObject.o

I have a project to build some code,  and then it has error in the follow:

Undefined symbols for architecture x86_64:
  "_CMAudioFormatDescriptionGetStreamBasicDescription", referenced from:
      -[captureNSObject init] in captureNSObject.o
  "_CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer", referenced from:
      -[captureNSObject captureOutput:didOutputSampleBuffer:fromConnection:] in captureNSObject.o
  "_CMSampleBufferGetNumSamples", referenced from:
      -[captureNSObject captureOutput:didOutputSampleBuffer:fromConnection:] in captureNSObject.o
ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

[Solution]
Add CoreMedia.framework into "Linked Frameworks and Libraries".

沒有留言:

張貼留言