swiftlang / swiftlang/swift-android-examples
How to use a shared-lib in an iOS app?
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 568
- Forks
- 40
- Avg merge
- 4h 8m
- Merged PRs (30d)
- 2
Description
Hello, I have created a test Xcode project (iOS, macOS, and visionOS support, Xcode 26.4), and I tried to add the 'hashing-lib' as a dependency, and everything went well, but when I did my first build, I ran into the following issues
Build input file cannot be found: '/Users/x/Library/Developer/Xcode/DerivedData/SwiftAndroid6.3Test-caimnetdzbuusubtcgknjbwxrujr/Build/Products/Debug/SwiftJavaTool'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
No such module 'SwiftHashing'
I did something wrong or missed something. It is a brand new project.
@ktoso @finagolfin any suggestion? 😁
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 reproducing the report in the new Xcode project described in the issue, focusing on the missing SwiftJavaTool input and the No such module: SwiftHashing error. Trace how the hashing-lib dependency is declared and how its products are exposed to the iOS target. Done means the setup instructions explain the required configuration and the project builds with SwiftHashing importable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- build-system, mobile
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100