yackle / CLImageEditor

MIT License
2.21k stars 573 forks source link

Installed CLimageEditor with all tools by cocoapods, when init CLImageEditor, got runtime error #99

Closed wangshuaidavid closed 9 years ago

wangshuaidavid commented 9 years ago

Created one CLimageEditor in Swift, in init period it just crashed, logs said :

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 
'*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'

and my code just as simple as :

let editor = CLImageEditor(image: UIImage(named: "Profile"), delegate: self)  \\ crashes here
self.presentViewController(editor, animated: true, completion:nil)

I just had done a little bit trace work, i noticed in 'toolsWithToolClass' it got some empty tools or something, just FYI. And the 'Demo' code not the cocoapods one just works fine.

wangshuaidavid commented 9 years ago

problem solved refer to issue #74 "CLImageEditor in my self Static Library".