I tried to delete my wkwebview cookies with the help of WKWebsiteDataStore
, but WKWebsiteDataStore
is not supported by my XCode 6.3.2. I am not willing to upgrade to XCode 7. Is there any other option to clear the cookies from WKWebview
?
Asked
Active
Viewed 293 times
0

Eiko
- 25,601
- 15
- 56
- 71

Jeba Moses
- 809
- 8
- 25
1 Answers
1
Unfortunately: no. It's not really a problem with Xcode version, but a problem of iOS version. As you can read in the Apple Documentation, WKWebsiteDataStore
is only available for iOS >= 9.0
. So, if you want to use WKWebsiteDataStore
you have to make iOS 9 as Deployment Target
.
But, if you want to use iOS9, you have to update your XCode to Xcode7. Indeed, you cannot use iOS 9 on Xcode < 7 (as you can read here).
So, to sum up: if you want to use WKWebsiteDataStore
: update your Xcode to 7+ and set iOS >= 9.0 as you deployment target.
Edit: After some research, it appears that you have an alternate way to delete cookies on iOS > 8.2. Take a look at this answer. But I still think that the best solution is to make the update :)

Community
- 1
- 1

Julien Quere
- 2,407
- 16
- 21
-
Thanks for ur kind answer @ julien Quere.. I will try the solution given in the link and will update the status soon. – Jeba Moses Sep 04 '16 at 18:12
-
i updated my xcode and OS.. now i can access WKWebsiteDataStore. – Jeba Moses Oct 26 '16 at 06:39