x/mobile: embedding library on iOS build fails. Undefined symbols: Linker command failed with exit code 1 #64758
Labels
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I am trying to embed
librclone
library in my iOS Flutter project.It binds using gomobile just fine, however after I include in the Xcode project, build fails with:
also the resulting ld output doesn't look healthy
Reproducible steps
In order to include the generated project I've used these steps:
https://go.dev/wiki/Mobile#building-and-deploying-to-ios-1
also tried couple more from:
https://medium.com/@matryer/tutorial-calling-go-code-from-swift-on-ios-and-vice-versa-with-gomobile-7925620c17a4
Framework Search Paths
Since my
librclone
library is located at:~/myproject/ios/Gomobile.xcframework
which is outside of the iOS Runner~myproject/ios/Runner/AppDelegate.swift
I've added:${PROJECT_DIR}/..
to Framework Search PathsBitcode
I've got
ENABLE_BITCODE
set toNO
Versions
go version
sw_vers
xcode
gomobile version
Not sure why
gomobile version
returns such a version tag. It's freshly installed using:go install golang.org/x/mobile/cmd/gomobile@latest
I would appreciate if you could help me to narrow down where the potential issue might be.
Related: #37241
The text was updated successfully, but these errors were encountered: