-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/mobile/cmd/gomobile: issues linking frameworks in Xcode #28517
Comments
ld command:
|
Reinstalling macOS fixed the issue for me. I don't like that as a fix though... |
@taybart @gopherbot @sashabaranov I hope this could help who has a similar issue like this. |
I am running into the same issue with adding my framework to Xcode. I think that reinstalling macOS is not a fix I would think is feasible. s.source_files = [
'SDK/Classes/*.swift',
'SDK/Classes/SHTTP.framework/**/*',
]
s.exclude_files = 'SDK/Classes/SHTTP.framework/Versions/**/*'
s.pod_target_xcconfig = {
'OTHER_LDFLAGS' => '$(inherited) -ObjC'
} My binary file is as follows: $ file HTTP.framework/HTTP
HTTP.framework/HTTP: Mach-O universal binary with 4 architectures: [arm_v7:current ar archive random library] [arm64]
HTTP.framework/Pokemon (for architecture armv7): current ar archive random library
HTTP.framework/Pokemon (for architecture i386): current ar archive random library
HTTP.framework/Pokemon (for architecture x86_64): current ar archive random library
HTTP.framework/Pokemon (for architecture arm64): current ar archive random library |
I added it as a vendored framework and still having the same issue: |
What version of Go are you using (
go version
)?go: 1.11.1
(also1.11
and1.10.3
were tested)gomobile: master (a27dd33d354d004b2de14a791df5af8a00f68b8e)
Xcode: 10.1 (10B61)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
[This was after gomobile/golang/xcode update]
I was successfully using
gomobile bind
, it seems that something with the build process has changed. I have a.framework
that I generated last week that still works, however, the new ones that I create are failing to link in the newest Xcode.The output below was generated with the example from the wiki. This may be an Xcode issue, but the fact that the old
.framework
is still compiling makes be think it may be ingomobile
.Looking at the lastest change that happened in gomobile, it seems unlikely that it is that. I am at a loss though. Xcode was updated along with the command line tools. Any insight would be very helpful.
What did you expect to see?
Successful linking of .framework
What did you see instead?
Xcode error:
The text was updated successfully, but these errors were encountered: