Skip to content

Commit

Permalink
Removes old instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Henry committed Oct 1, 2019
1 parent 2c378cb commit a4719bf
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ An Xcode extension (plugin) to generate [spy](#what-is-a-spy), [stub](#what-is-a
- Copy the app to the `Applications` folder.
- Open the app
- Select OK for '"Swift Mock Generator for Xcode" wants access to control "Xcode"'
- Set the SDK Path. Xcode 11 example: `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk`. [Why do I need to do this?](#setting-the-sdk-path)
- Go to `System Preferences -> Extensions -> Xcode Source Editor` and make sure `Mock Generator` is enabled.
- Go to `System Preferences -> Security & Privacy -> Privacy -> Automation` and make sure `Swift Mock Generator` is enabled.
- Open Xcode
Expand Down Expand Up @@ -222,18 +221,6 @@ Dummy objects are passed around but never actually used. Usually they are just u

Partial spies are spies which can also forward calls to the original implementation.

## Setting the sdk path

Since Xcode 11, SourceKit needs to know which sdk is being used. For the purposes of this plugin, it doesn't seem to matter which platform this sdk belongs to so this can just be the macOS sdk. To list the macOS SDKs bundled in Xcode:

```
$ ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
```

You will need to copy the full path of one of these SDKs to the companion app.

If you have more that one Xcode installed you will also need to make sure the SDK is belongs to the right version of Xcode. For example, the SDKs in Xcode 10 do not work with SourceKit in Xcode 11.

## Disable or remove the plugin

To disable:
Expand Down

0 comments on commit a4719bf

Please sign in to comment.