file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture

【问题】:

I upgraded xcode version and when using external static libraries I get this message:

ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)

is there anyway to bypass this and add support to the library if the developer of the library didn't updated his library yet ?

Thanks


【解决方法】:

If you want to remove the support for any architecture, try this:

Project -> Build Settings -> remove the architecture from "valid architectures"

You can use this as a temporary solution until the library has been updated.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个错误是因为在for循环中使用了错误的索引类型导致的。根据您提供的代码,错误发生在使用json_file["shapes"]这个列表时,而使用非整数或切片作为索引会导致TypeError: list indices must be integers or slices, not str的错误。为了解决这个问题,您需要确保在for循环中使用整数或切片作为索引。您可以修改代码如下: ```python for multi in range(len(json_file["shapes"])): # 这里是您的循环体 ``` 这样,您就可以使用整数索引来遍历json_file["shapes"]列表中的元素了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [已解决TypeError:List indices must be integers or slices , not str](https://blog.csdn.net/yuan2019035055/article/details/126149910)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *3* [TypeError: list indices must be integers or slices, not tuple](https://blog.csdn.net/m0_70484757/article/details/131177799)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值