#error Unsupported architecture - cdefs.h - Swift BLE 项目在 Swift 2.3 中运行良好,但在 Swift 3.0 中仅在真实设备上出现错误

Posted

技术标签:

【中文标题】#error Unsupported architecture - cdefs.h - Swift BLE 项目在 Swift 2.3 中运行良好,但在 Swift 3.0 中仅在真实设备上出现错误【英文标题】:#error Unsupported architecture - cdefs.h - Swift BLE project was working fine in Swift 2.3 but gives error in Swift 3.0 only on real device 【发布时间】:2016-10-18 00:38:16 【问题描述】:

当项目是 Swift 2.3 时,所有工作都在模拟器和我的 iPhone 6S 上运行 在转换为 Swift 3.0 并进行一些改进后,我在真实设备上运行时收到错误ONLY...在模拟上运行就可以了。

【问题讨论】:

【参考方案1】:

我通过删除所有框架文件解决了这个问题,并一次添加一个文件,发现框架文件已损坏。从备份中替换文件就可以了

【讨论】:

以上是关于#error Unsupported architecture - cdefs.h - Swift BLE 项目在 Swift 2.3 中运行良好,但在 Swift 3.0 中仅在真实设备上出现错误的主要内容,如果未能解决你的问题,请参考以下文章

Python locale error: unsupported locale setting

Spring 发送 JSON 数据提示 Unsupported Media Type 错误 “status“: 415, “error“: “Unsupported Media Type

Spring 发送 JSON 数据提示 Unsupported Media Type 错误 “status“: 415, “error“: “Unsupported Media Type

pip install 时locale.Error: unsupported locale setting

[ERROR] Terminal initialization failed; falling back to unsupported

error:0308010C:digital envelope routines::unsupported