Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在gomobile连接上运行示例测试时出错_Ios_Swift_Go - Fatal编程技术网

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

Ios 在gomobile连接上运行示例测试时出错,ios,swift,go,Ios,Swift,Go,我正试图在终端上运行Gomobile测试这是我的代码 我做得很好,就像我的指导一样 go get golang.org/x/mobile/cmd/gomobile gomobile init gomobile build-target=ios golang.org/x/mobile/example/basic 这给了我一个错误: gomobile:go build-tags ios-ldflags=-w-o=/var/folders/4q/2vddqkyd3rv4tvzfbnssbkm0000g

我正试图在终端上运行Gomobile测试这是我的代码 我做得很好,就像我的指导一样

  • go get golang.org/x/mobile/cmd/gomobile
  • gomobile init
  • gomobile build-target=ios golang.org/x/mobile/example/basic
  • 这给了我一个错误:

    gomobile:go build-tags ios-ldflags=-w-o=/var/folders/4q/2vddqkyd3rv4tvzfbnssbkm0000gn/T/gomobile-work-977299939/amd64 golang.org/x/mobile/example/basic失败:退出状态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/toolschains/XcodeDefault.xctoolschain/usr/bin/clang失败:退出状态1

    ld:为iOS模拟器构建,但在为OSX构建的对象文件中链接,用于架构x86_64的文件“/var/folders/4q/2vddqkyd3rv4tvzfbnssbkm0000gn/T/go-link-176961670/000003.o”

    叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用)


    你找到解决办法了吗?