为什么WWDC 2010视频捕获示例在模拟器中不起作用? [英] Why don't the WWDC 2010 video capture samples work in the Simulator?

查看:106
本文介绍了为什么WWDC 2010视频捕获示例在模拟器中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I downloaded the latest video capture samples from WWDC 2010 and am trying to run them in my simulator.

一般而言,样本应该没有任何修补而运行,因此我只是解压缩了其中的一部分,并尝试在Xcode中运行它们.我尝试过的那些都没有运行. 例如,当我解压缩并尝试构建findMyiCone时,出现45个错误.

Samples in general are supposed to run without any tinkering so I just unzipped a bunch of them and tried to run them in Xcode. None of the ones I tried runs. For example when I unzip and try to build findMyiCone I get 45 errors.

这是前几行

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

Im using Xcode 3.2.3 64 bit and have installed iPhone 4.0 SDK

我的其他应用程序运行正常.

My other apps work fine.

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

Anyone have similar issues? Any ideas what might be happening?

推荐答案

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

Camera samples only run in the device ;) There is no simulator support.

这篇关于为什么WWDC 2010视频捕获示例在模拟器中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆