gpt4 book ai didi

ios4 - xcode4 “dyld: Symbol not found: _OBJC_CLASS_$_AVCaptureDevice”错误

转载 作者:行者123 更新时间:2023-12-04 13:54:46 25 4
gpt4 key购买 nike

我的iphone应用程序在IOS 4.3模拟器中运行,但没有在任何其他IOS 4.0+模拟器中运行。即使它会在那里运行。

我收到以下错误-

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".Attaching to process 71564. dyld: Symbol not found: _OBJC_CLASS_$_AVCaptureDevice Referenced from: /Users/qianfan/Library/Application Support/iPhone Simulator/4.2/Applications/XXXX-XXXX/XXXX.app/XXXX Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/AVFoundation.framework/AVFoundation in /Users/qianfan/Library/Application Support/iPhone Simulator/4.2/Applications/XXXX-XXXX/XXXX.app/XXXX sharedlibrary apply-load-rules all (gdb)



我的应用程序正在使用(静态引用)最新的ZXing iPhone代码(截至2011-03-31 2001-04-24已测试的两个版本)。

我相信AVCaptureDevice在所有iOS 4.0 +中都已存在,并且zxing支持ios 4.0 +。
当我做:

Macintosh:zxing-trunk XXX$ grep _OBJC_CLASS_$_AVCaptureDevice /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/AVFoundation.framework/* Binary file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/AVFoundation.framework/AVFoundation matches



有什么建议么?我要在这里找什么?非常感谢。

最佳答案

我只想提到mmilo的答案(关于将“Required”更改为“Optional”)为我解决了这个问题。只需单击AVFoundation.framework(在Project View 中的Frameworks文件夹下),然后确保“最右边的 View ”窗口已打开。您可以在此处将“目标成员资格”从“必需”更改为“可选”。

我的具体问题与梅尔文的问题相同。使用4.3 SDK时,无法在4.2模拟器上编译我的项目,因为找不到AVCaptureDevice类。

关于ios4 - xcode4 “dyld: Symbol not found: _OBJC_CLASS_$_AVCaptureDevice”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5771613/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com