小编hie*_*v92的帖子

--resource-rules已在mac os x> = 10.10中弃用

我尝试使用iResign应用程序在Mac OS 10.10上使用新的配置文件重新签名我的ipa文件但是我收到了这个警告:"警告: - 在Mac OS X中已经弃用了--resource-rules> = 10.10".

我现在应该怎么做?

iphone code-signing ios ipa osx-yosemite

68
推荐指数
4
解决办法
3万
查看次数

类型'OSType'不符合Swift 2.0中的协议'AnyObject'

我刚刚使用Swift 2.0更新到Xcode 7 beta.当我将我的项目更新到Swift 2.0时,我得到了这个错误:"类型'OSType'不符合Swift 2.0中的协议'AnyObject'".我的项目在Swift 1.2中完美运行.这是代码得到错误:

videoDataOutput = AVCaptureVideoDataOutput()
        // create a queue to run the capture on
        var captureQueue=dispatch_queue_create("catpureQueue", nil);
        videoDataOutput?.setSampleBufferDelegate(self, queue: captureQueue)

        // configure the pixel format            
        **videoDataOutput?.videoSettings = [kCVPixelBufferPixelFormatTypeKey: kCVPixelFormatType_32BGRA]** // ERROR here!

        if captureSession!.canAddOutput(videoDataOutput) {
            captureSession!.addOutput(videoDataOutput)
        }
Run Code Online (Sandbox Code Playgroud)

我试图将kCVPixelFormatType_32BGRA转换为AnyObject,但它不起作用.有人可以帮帮我吗?对不起,我的英语不好!谢谢!

swift avcaptureoutput xcode7 swift2

9
推荐指数
1
解决办法
2336
查看次数