mediapipe
mediapipe copied to clipboard
Linker Command Failed When Integrating Gemma-3 1B in SwiftUI App
I attempted to integrate the Gemma-3 1B model into my SwiftUI app using llm_inference, but encountered a linker error (as shown in the attached screenshot). To ensure the issue wasn’t caused by my implementation, I cloned this repository and followed the setup steps, including running pod install. However, I encountered the same linker error in the official repository as well. The error message does not specify the exact cause, and I am unable to locate the missing symbols or dependencies. I would appreciate any guidance on whether this issue is due to my environment setup or an issue with the project itself.
Expected Behavior
The project should build successfully without linker errors. Actual Behavior
The build fails with a "Linker command failed with exit code 1" error. The exact error message is unclear, and I am unable to trace the cause.
Troubleshooting Steps Taken
- Verified framework is correctly linked under Build Phases → Link Binary With Libraries.
- Ensured CocoaPods dependencies were installed correctly (pod install --repo-update).
- Opened .xcworkspace instead of .xcodeproj.
- Cleaned build and deleted derived data.
- Checked for missing imports or incorrect framework names.
Additional Context
I have attached a screenshot of the error for reference. Any insights into this issue would be greatly appreciated!
Did you get this to work? I got the initial two models working but I haven't been able to get the gemma 3 model working yet.
Did you get this to work? I got the initial two models working but I haven't been able to get the gemma 3 model working yet.
How ? Did you use physical device ? What's your macOS versions ?