seanhenry / SwiftMockGeneratorForXcode

An Xcode extension (plugin) to generate Swift test doubles automatically.
MIT License
748 stars 47 forks source link

Xcode 11 GM. Could not find a class or protocol .... #28

Closed dandreikiv closed 4 years ago

dandreikiv commented 4 years ago

Hi. I have switched to Xcode 11 GM and Mock Generator started to give me an error with message Could not find a class or protocol .... In Xcode 10.3 everything worked fine.

seanhenry commented 4 years ago

Hi,

Thanks for raising this issue.

The issue is fixed in the latest release but make sure you read the release notes to migrate successfully.

This issue was caused by SourceKit in Xcode 11. It now requires an -sdk parameter pointing to a platform SDK. Unfortunately there's no easy way to automatically get the SDK so there is a new text field that must be filled in in the companion app. See Setting the SDK path for more information.

seanhenry commented 4 years ago

I've improved the Xcode 11 support now - no need to add an SDK path and fixed some performance issues. You can download that release here