Xcode Extension process appears in Dock when opening another application

Originator:ashton.john.williams
Number:rdar://27192473 Date Originated:06-Jul-2016
Status:Closed Resolved:13-Aug-2016
Product:Xcode Product Version:8.0 beta 2 (8S162m)
Classification:Other Bug Reproducible:Always
 
Xcode Editor Extensions can be programmed to open other applications, but when they do their process appears in the OSX Dock as the .appex bundle, and bounces for a few minutes before going away, presumably at the same time as the extension process is exited or terminated by Xcode.

The method of opening another application used in the sample is:

NSWorkspace.shared().launchApplication("TextEdit")

#### Steps to reproduce
1. Install an Xcode Editor Extension that opens other apps
2. Perform the extension command that will open an app

#### Expected Results
The extension opens an app, and the app appears in the Dock.

#### Actual Results
The extension opens an app, and the extension appears in the Dock and bounces, the app also appears in the Dock.

#### Xcode Version/Build & OSX Version/Build

OS X El Capitan Version 10.11.5 (15F34)
Xcode Version 8.0 beta 2 (8S162m)

Also occurred on:

OS X El Capitan Version 10.11.5 (15F34)
Xcode Version 8.0 beta 1

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!