iOS11 WKWebview crash due to NSInvalidUnarchiveOperationException

NSInvalidUnarchiveOperationException when loading the nib / storyboard means there an object in the nib / storyboard that the runtime doesn’t understand. This is because the framework that defines that kind of object is missing. So, in this case, you need to link your app target against the WebKit framework so that the app understands what … Read more

Getting all cookies from WKWebView

Cookies used (created) by the WKWebView are actually correctly stored in the NSHTTPCookieStorage.sharedHTTPCookieStorage(). The problem is that the WKWebView does not write back the cookies immediately. I think it does this on its own schedule. For example when a WKWebView is closed or maybe periodically. So eventually they do end up in there, but when … Read more

ITMS-90809: Deprecated API Usage — Apple will stop accepting submissions of apps that use UIWebView APIs

Check if you use in your code the UIWebView class; if yes replace your implementation with WKWebView, else need check your Pods. Go with terminal into your project folder and execute the command: grep -r “UIWebView” . All matched pod must be updated. Now I’m stuck because I found UIWebView into Google AdMob (version 7.49.0) … Read more

com.apple.WebKit.WebContent drops 113 error: Could not find specified service

Finally, solved the problem above. I was receiving errors Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service Since I have not added WKWebView object on the view as a subview and tried to call -loadHTMLString:baseURL: on the top of it. And only after it was successfully loaded I was adding it to … Read more

WKWebView equivalent for UIWebView’s scalesPageToFit

you can also try the WKUserScript. here’s my working config: NSString *jScript = @”var meta = document.createElement(‘meta’); meta.setAttribute(‘name’, ‘viewport’); meta.setAttribute(‘content’, ‘width=device-width’); document.getElementsByTagName(‘head’)[0].appendChild(meta);”; WKUserScript *wkUScript = [[WKUserScript alloc] initWithSource:jScript injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES]; WKUserContentController *wkUController = [[WKUserContentController alloc] init]; [wkUController addUserScript:wkUScript]; WKWebViewConfiguration *wkWebConfig = [[WKWebViewConfiguration alloc] init]; wkWebConfig.userContentController = wkUController; wkWebV = [[WKWebView alloc] initWithFrame:self.view.frame configuration:wkWebConfig]; you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)