Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing of Swift frameworks #12

Open
DelphiWorlds opened this issue Oct 11, 2023 · 3 comments
Open

Importing of Swift frameworks #12

DelphiWorlds opened this issue Oct 11, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@DelphiWorlds
Copy link
Collaborator

DelphiWorlds commented Oct 11, 2023

This may be relevant:

https://developer.apple.com/documentation/swift/importing-swift-into-objective-c

2 scenarios:

  1. Compiled Swift framework for which the source is not available, and no bridging headers
  2. Swift framework where the source is available and no bridging headers

ChatGPT research regarding these scenarios, here:

https://github.com/DelphiWorlds/HowTo/blob/main/ChatGPTConversations/CreateBridgingHeadersForSwiftFrameworks.md

If the bridging headers are already available, presumably it's a matter of tweaking Octoid to read from the bridging headers which are suffixed with -Swift.h. Octoid could check for the existence of such headers and act accordingly

@DelphiWorlds DelphiWorlds added the enhancement New feature or request label Oct 11, 2023
@DelphiWorlds DelphiWorlds self-assigned this Oct 11, 2023
@omonien
Copy link

omonien commented Oct 12, 2023

Should we create a simple Swift-based framework for the first tests? Or find something not too complicated on GitHub?

@DelphiWorlds
Copy link
Collaborator Author

Either way works for me

@Jalsam2002
Copy link

I think something less complex on grit hub would work and would be less difficult to operate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants