douguyi3903 2018-07-12 04:08
浏览 137

在gomobile连接上运行示例测试时出错

I'm trying to run a Gomobile test on the terminal here is my code I have done like instruction from https://www.sitepoint.com/ios-and-android-programming-with-go/

  1. go get golang.org/x/mobile/cmd/gomobile
  2. gomobile init
  3. gomobile build -target=ios golang.org/x/mobile/example/basic

Which gives me the error:

gomobile: go build -tags ios -ldflags=-w -o=/var/folders/4q/2vddqkyd3rv4tvzfbnsssbkm0000gn/T/gomobile-work-977299939/amd64 golang.org/x/mobile/example/basic failed: exit status 2 # golang.org/x/mobile/example/basic /Users/ibct/.gvm/gos/go1.9.6/pkg/tool/darwin_amd64/link: running /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed: exit status 1

ld: building for iOS simulator, but linking in object file built for OSX, file '/var/folders/4q/2vddqkyd3rv4tvzfbnsssbkm0000gn/T/go-link-176961670/000003.o' for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用