Sandbox changes for NSServices when using SDK 10.13?

Been developing for a while an app which provides a service for strings.

This has been appearing in the services menu as expected for months during development…


Updated to XC9 SDK10.13 (dev machine @macOS10.12.6 - target 10.9) when I build the service no longer appears…

No info-plist changes.

No NSApp setServiceProvider changes

This is a sandboxed app.

Have there been changes to how services behave?


<key>NSServices</key>
<array>
  <dict>
  <key>NSMenuItem</key>
  <dict>
  <key>default</key>
  <string>XYZ</string>
  </dict>
  <key>NSMessage</key>
  <string>xyzService</string>
  <key>NSPortName</key>
  <string>XYZ</string>
  <key>NSRequiredContext</key>
  <dict/>
  <key>NSRestricted</key>
  <false/>
  <key>NSSendTypes</key>
  <array>
  <string>public.plain-text</string>
  <string>public.utf8-plain-text</string>
  <string>public.rtf</string>
  </array>
  <key>NSServiceDescription</key>
  <string>XYZ does X, Y, & Z</string>
  </dict>
</array>

Accepted Reply

Well... hmm


quit XC

rm -f /derivedData

pbs -flush

full reboot

start XC

build and run

we're back in business

Replies

Well... hmm


quit XC

rm -f /derivedData

pbs -flush

full reboot

start XC

build and run

we're back in business