I just tried to build my project in Xcode 9 beta and I'm getting an error that says:
Use of undeclared type
SKError
This error is in a CocoaPod called SwiftyStoreKit.
I tried cleaning the project with no success.
Any ideas on how to fix this? I didn't hear anything about changes to SKError
in Xcode 9, iOS 11, or Swift 4. Although I haven't converted my project to Swift 4 yet. Am I missing something?
This is a known issue in the SwiftyStoreKit framework. As a quick fix, trying switching to the swift-4.0
branch instead:
pod 'SwiftyStoreKit', :git => 'https://github.com/bizz84/SwiftyStoreKit', :branch => 'swift-4.0'
edit your Podfile
, with the line above, then run pod install
again.
By the way, according to the aforementioned issue, this looks like a bug on Apple's side ;(