I am trying to run an iOS application which I have downloaded from github here . I am getting Mach-O Linker error. I have searched around web but I found nothing.
I have added all the required libraries in the Build Target. Error Stack goes like this
Undefined symbols for architecture i386:
"_CMAudioFormatDescriptionGetStreamBasicDescription", referenced from:
-[FDWaveformView renderPNGAudioPictogramLogForAsset:done:] in FDWaveformView.o
"_CMBlockBufferCopyDataBytes", referenced from:
-[FDWaveformView renderPNGAudioPictogramLogForAsset:done:] in FDWaveformView.o
"_CMBlockBufferGetDataLength", referenced from:
-[FDWaveformView renderPNGAudioPictogramLogForAsset:done:] in FDWaveformView.o
"_CMSampleBufferGetDataBuffer", referenced from:
-[FDWaveformView renderPNGAudioPictogramLogForAsset:done:] in FDWaveformView.o
"_CMSampleBufferInvalidate", referenced from:
-[FDWaveformView renderPNGAudioPictogramLogForAsset:done:] in FDWaveformView.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help will be highly appreciated.
Maybe it is a stupid answer/question, but you are really sure that you added the CoreMedia
framework and it is linked in your Project?
EDIT:
With Xcode 4.6 is needed add CoreMedia Framework and set the storyboard compatible with Xcode 4.6.
With Xcode 5, the project compile without problem.
I have successfully solved the problem. I was using the old version of XCode whereas project was expecting XCode 5. I have upgraded my OS to Mac OS Mavericks and my XCode to Xcode 5 and then everything worked fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.