How to enable WebView in Objective-C without crashing

When I include a WebView component in a form in an Objective-C project in Xcode for an Cocoa OSX application and try to compile it, it compiles and then has a runtime error:

NSKeyedUnarchiver decodeObjectForKey:]: cannot decode a class object (WebView) for a key (NS.objects); a class can be defined in source code or a library that is not related

What is the fix?

+4
source share
1 answer

XCode7, WebView, . , . IDE > . + WebKit.framework. , , , .

, , 10.11, , 10.9 10.10, . 100% , .

:

10.8, , 10.8 OSX.

+12

Source: https://habr.com/ru/post/1617961/


All Articles