jpsim / jpsim/SourceKitten

App Store App

Open
#609 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.4k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Is it possible to use the sourcekitten framework in an app submitted to the App Store?

Obviously, App Store apps need to be sandboxed. Unfortunately, simply turning that on doesn't work. I get xcrun: error: cannot be used within an App Sandbox.

So I found this issue that suggested wrapping SourceKitten in an XPC Service. I did so, turned sandboxing on in my app, and it worked as intended! So I submitted to the App Store and it failed upon upload because The XPC Service needs to be sandboxed too...

So I turned sandboxing on for the XPC Service and was confronted with xcrun: error: cannot be used within an App Sandbox again.

Is this just impossible? Or is there more to it to get it to work?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining how the SourceKitten framework invokes xcrun from an App Sandbox and how the XPC Service changes that boundary. Reproduce the sandbox errors and App Store upload failure described in the issue. Done means establishing whether a supported sandboxed configuration exists, or documenting that this use case is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
desktop, security
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.