cocos creator build ios 运行模拟器报错 xxx building for iOS Simulator, but linking in object file built fo

在使用cocos creator构建iOS项目时,遇到模拟器运行报错,错误涉及对象文件为iOS构建而非iOS Simulator。通过查看报错日志,发现问题与架构设置有关。在cocos creator 2.4.7版本中,通过6步设置解决了问题:双击项目名,选择build settings,搜索excluded,找到excluded Architectures,于debug和release下添加any sdk,并排除arm64架构。
摘要由CSDN通过智能技术生成

cocos creator build ios 运行模拟器报错 xxx building for iOS Simulator, but linking in object file built for iOS , a' for architecture arm64

cocos build iOS 用真机跑能跑,用模拟器就会报错

大致的报错 log

In /Users/kcone/Library/Developer/Xcode/DerivedData/Knife-eudfzjafbjwkcrdqqlzyojaxcgrt/Build/Products/Debug-iphonesimulator/libcocos2d iOS.a(ftsystem.o), building for iOS Simulator

but linking in object file built for iOS, file ‘/Users/kcone/Library/Developer/Xcode/DerivedData/Knife-eudfzjafbjwkcrdqqlzyojaxcgrt/Build/Products/Debug-iphonesimulator/libcocos2d iOS. a’ for architecture arm64

找ios文章看了看要设置架构

我的版本是 2.4.7

按下图6个步骤设置

1.双击 最顶端项目名
2.选 build setting
3.搜索 excluded
4.找到 excluded Architectures
5.debug release 添加any sdk
6.排除项加上 arm64

在这里插入图片描述

搞定

比真机卡亿点点

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值