Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash issue on Xcode8 with swift2.3 #38

Open
heqichang opened this issue Oct 9, 2016 · 4 comments
Open

Crash issue on Xcode8 with swift2.3 #38

heqichang opened this issue Oct 9, 2016 · 4 comments

Comments

@heqichang
Copy link

heqichang commented Oct 9, 2016

Hi,

Below code will be crashed on Xcode8

guard let cgImage = CIContext(options: nil).createCGImage(self, fromRect: self.extent) else { return nil }

'NSInvalidArgumentException', reason: '-[CIContext initWithOptions:]: unrecognized selector

@meigesir
Copy link

In iOS 8.1.3, Swift 3.0 crash too. Do you solve it? @heqichang

@heqichang
Copy link
Author

@meigesir I wrote a category by Objective-C, then changed his code call my category method.

@meigesir
Copy link

@heqichang Me,too😊

@FicowShen
Copy link

use CIContext() , instead of CIContext(options: nil)

I used CIContext() and the crash solved.😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants