App Store App
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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