apple / apple/swift-openapi-generator

Share extension support

Open
#735 1 comment 0 reactions 0 assignees View on GitHub
kind/support status/triage
Dominant language
Swift
Stars
2k
Forks
182
Avg merge
13h 28m
Merged PRs (30d)
5

Description

### Question

I'm trying to access the generator swift package inside a Share Extension.

![Image](https://github.com/user-attachments/assets/08759fbf-e149-4d76-a2a7-dc274b3d7038)

I get this error when building: `_OpenAPIGeneratorCore is only to be used by swift-openapi-generator itself—your target should not link this library or the command line tool directly.`

Please let me know what I'm doing wrong or how to get access to the generator. Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the build in the Share Extension and inspect how the generator Swift package is linked. Use the reported error to determine the supported integration path; done means the Share Extension can access the generator without directly linking _OpenAPIGeneratorCore or the command-line tool.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.