You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to wrap a C/C++ static library with CGO, I found that the .a file does not build into an xcframework. I must add the .a files to my project, otherwise Xcode will throw errors such as "undefined symbols."
The first link demonstrates using CGO to wrap .a files.
The second link shows the build command.
There are no issues during the build phase, but when you try to use the output xcframework, the IDE will report missing symbols. The common solution is to add the .a files to the Xcode project.
Is there any CFLAG or other build parameter that could make the .a files statically link into the xcframework?
The text was updated successfully, but these errors were encountered:
FOR HELP:
When I try to wrap a C/C++ static library with CGO, I found that the
.a
file does not build into an xcframework. I must add the.a
files to my project, otherwise Xcode will throw errors such as "undefined symbols."My Golang version is 1.23.
Usage examples:
The first link demonstrates using CGO to wrap
.a
files.The second link shows the build command.
There are no issues during the build phase, but when you try to use the output xcframework, the IDE will report missing symbols. The common solution is to add the
.a
files to the Xcode project.Is there any CFLAG or other build parameter that could make the
.a
files statically link into the xcframework?The text was updated successfully, but these errors were encountered: