Share Extensions embedded in visionOS apps

I'm trying to add a feature to my app to allow a user to import items from other apps, like Safari, via the share sheet.

I've done this many times on iOS/iPadOS easily with a Share Extension. From what I can tell, Xcode tells me share extensions are not available on visionOS - though my experience on device tells me differently (It seems Reminders, Notes & more implement them somehow.) I was finally able to get it working on device only...but I can now no longer test in the simulator, and have not found a way to distribute this app.

When attempting to run on the simulator, I get this issue:

Please try again later. Appex bundle at /Users/jason/Library/Developer/CoreSimulator/Devices/09A70160-4F4F-4F5E-B679-F6F7D876D7EF/data/Library/Caches/com.apple.mobile.installd.staging/temp.6OAEZp/extracted/LaunchBar.app/PlugIns/LaunchBarShareExtension.appex with id co.swiftfox.LaunchBar.ShareExtension specifies a value (com.apple.share-services) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point.

When trying to archive an upload to test flight, I get this similar error:

Invalid Info.plist value. The value for the key 'DTPlatformName' in bundle LaunchBar.app/PlugIns/LaunchBarShareExtension.appex is invalid. (ID: 207610c7-b7e1-48be-959b-22a43cd32d16)

The app is for visionOS only - which I'm thinking might be the problem? The share extension is "Designed For iPhone" and requires me to include iPhone as a run destination. In the worst case I can build an iPhone UI for the app but I'd rather not, as it is very specific to visionOS.

Has anyone successfully launched a share extension on a visionOS only app? I have an iPad app with a share extension that shows up fine on visionOS, but the issue seems to be specifically with visionOS only apps.

Answered by jclardy in 862323022

As per usual - once you post about something the solution just comes to you.

The solution for anyone running into the same thing is just adding Apple Vision as the only destination for the Share Extension target, and removing the Apple Vision (Designed for iPhone) one that is automatically created for the template.

Accepted Answer

As per usual - once you post about something the solution just comes to you.

The solution for anyone running into the same thing is just adding Apple Vision as the only destination for the Share Extension target, and removing the Apple Vision (Designed for iPhone) one that is automatically created for the template.

Share Extensions embedded in visionOS apps
 
 
Q