doulangtiao4508 2018-11-01 23:37
浏览 134

Xcode未在gomobile(绑定)生产的框架上检测架构

I have a framework that I produced with gomobile. I have written up most of my detail in this issue. It may have to do with Xcode/ld, but I have a different version of the framework that does compile. I am not sure this is entirely go (although it does seem like it) so I thought I should put a stack overflow q up. The output of file is listed in the issue but I will put it here as well:

$ file Hello.framework/Hello
Hello.framework/Hello: Mach-O universal binary with 4 architectures: [arm_v7:current ar archive] [arm64]
Hello.framework/Hello (for architecture armv7):  current ar archive
Hello.framework/Hello (for architecture i386):   current ar archive
Hello.framework/Hello (for architecture x86_64): current ar archive
Hello.framework/Hello (for architecture arm64):  current ar archive

ld is not happy with the file.

Warning ignoring file ./Hello.framework/Hello, file is universal (4 slices) but does not contain the x86_64 architecture: ./Hello.framework/Hello
  • 写回答

1条回答 默认 最新

  • douhuigan8063 2019-09-12 19:41
    关注

    In my case, the problem appeared because I wanted to free some space on my mac and deleted some of the older deployment target files. Before this, I used to build for iOS development target 10.3 and now, since I deleted those files, I had to build for 12.4.

    Calling $(go env GOPATH)/bin/gomobile init before $(go env GOPATH)/bin/gomobile bind worked for me. Probably init scans the files in /Users/<user>/Library⁩/Developer⁩/Xcode⁩/iOS DeviceSupport⁩ and following calls to bind use them correctly.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。