ios Finch 库错误
我计划在我的 iOS 项目中使用 Finch 来无延迟地播放音频音效。
我创建了一个包含我的项目和 Finch 的工作区。我创建了“Support”文件夹并在那里链接了用户标题搜索路径。我还将 libFinch.a 链接到我的项目。
按照演示代码: 我做
soundFactory = [[FIFactory alloc] init];
[soundFactory setLogger:FILoggerNSLog];
[self setSoundEngine:[soundFactory buildSoundEngine]];
[soundEngine activateAudioSessionWithCategory:AVAudioSessionCategoryPlayback];
[soundEngine openAudioDevice];
当在 iOS 4.3 设备上运行时,Xcode 给我这个错误,并向我指出 FIFactory.m init 方法:
dyld: lazy symbol binding failed: Symbol not found: _objc_storeStrong
Referenced from: /var/mobile/Applications/20924112-6536-4200-84E2-E426CD8FC6F5/
Expected in: /usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_storeStrong
Referenced from: /var/mobile/Applications/20924112-6536-4200-84E2-E426CD8FC6F5/
Expected in: /usr/lib/libobjc.A.dylib
如何修复此错误?
I'm planning on using Finch in my iOS project to play audio sound effects without delay.
I created a workspace with my project and Finch in. I've created the "Support" folder and linked User Header Search Paths there. Also I linked the libFinch.a to my project.
Following the demo code: I do
soundFactory = [[FIFactory alloc] init];
[soundFactory setLogger:FILoggerNSLog];
[self setSoundEngine:[soundFactory buildSoundEngine]];
[soundEngine activateAudioSessionWithCategory:AVAudioSessionCategoryPlayback];
[soundEngine openAudioDevice];
When running on a iOS 4.3 device, Xcode gives me this error, and points me to FIFactory.m init method:
dyld: lazy symbol binding failed: Symbol not found: _objc_storeStrong
Referenced from: /var/mobile/Applications/20924112-6536-4200-84E2-E426CD8FC6F5/
Expected in: /usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_storeStrong
Referenced from: /var/mobile/Applications/20924112-6536-4200-84E2-E426CD8FC6F5/
Expected in: /usr/lib/libobjc.A.dylib
How can I fix this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是将非 ARC 项目与启用 ARC 的静态库链接的问题,请参阅此问题。
I think it’s an issue of linking a non-ARC project with an ARC-enabled static library, see this question.