mkoehnke / WKZombie

WKZombie is a Swift framework for iOS/OSX to navigate within websites and collect data without the need of User Interface or API, also known as Headless browser. It can be used to run automated tests / snapshots and manipulate websites using Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error: 'shared' is unavailable: Use view controller based solutions where appropriate instead.

kibiz0r opened this issue · comments

Pods/WKZombie/Sources/WKZombie/Renderer.swift:91:47: error: 'shared' is unavailable: Use view controller based solutions where appropriate instead.
                if let window = UIApplication.shared.keyWindow {
                                              ^~~~~~
UIKit.UIApplication:5:20: note: 'shared' has been explicitly marked unavailable here
    open class var shared: UIApplication { get }
PODS:
  - hpple (0.2.0)
  - WKZombie (1.1.0):
    - hpple (= 0.2.0)

iOS 11.1
Xcode 9.1

Fixed in #80