为什么WWDC 2010视频捕获样本不能在模拟器中运行?

时间:2010-08-01 22:06:18

标签: iphone cocoa-touch avfoundation wwdc

我从WWDC 2010下载了最新的视频捕获示例,并尝试在我的模拟器中运行它们。

一般来说,样本应该在没有任何修补的情况下运行,所以我只是解压缩了一堆并尝试在Xcode中运行它们。我试过的都没有。 例如,当我解压缩并尝试构建findMyiCone时,我得到45个错误。

以下是前几行

In file included from /Users/aw/Desktop/Sample code/WWDC10-SampleCode/FindMyiCone/Classes/ProcessViewController.h:49,
                 from /Users/aw/Desktop/Sample code/WWDC10-SampleCode/FindMyiCone/Classes/ProcessAppDelegate.m:50:
/Users/aw/Desktop/Sample code/WWDC10-SampleCode/FindMyiCone/Classes/CaptureSessionManager.h:52: error: cannot find protocol declaration for 'AVCaptureVideoDataOutputSampleBufferDelegate'
/Users/aw/Desktop/Sample code/WWDC10-SampleCode/FindMyiCone/Classes/CaptureSessionManager.h:54: error: expected specifier-qualifier-list before 'AVCaptureSession'
/Users/aw/Desktop/Sample code/WWDC10-SampleCode/FindMyiCone/Classes/CaptureSessionManager.h:55: error: expected specifier-qualifier-list before 'AVCaptureVideoPreviewLayer'
/Users/aw/Desktop/Sample code/WWDC10-SampleCode/FindMyiCone/Classes/CaptureSessionManager.h:56: error: expected specifier-qualifier-list before 'AVCaptureConnection'

我使用Xcode 3.2.3 64位并安装了iPhone 4.0 SDK

我的其他应用运行正常。

有人有类似的问题吗?任何想法可能会发生什么?

1 个答案:

答案 0 :(得分:8)

相机样本仅在设备中运行;) 没有模拟器支持。