我从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
我的其他应用运行得很好。
有谁有类似的问题吗?你知道可能会发生什么吗?
发布于 2010-08-02 06:43:19
摄像机样本仅在设备中运行;)没有模拟器支持。
https://stackoverflow.com/questions/3383928
复制相似问题