How to fix this error “ Could not find module 'CzsBleSdk' for architecture 'x86_64'; found: arm64, arm ”

僤鯓⒐⒋嵵緔 提交于 2019-12-24 12:42:13

问题


I'm working with bluetooth in an old project which was written in swift3 and i'm working on converting it in swift4 and I had this error "Could not find module 'CzsBleSdk' for architecture 'x86_64'; found: arm64, arm"


回答1:


You are now using 64 bit architecture in your Swift 4 project. You'll need the latest CzsBleSdk SDK which supports 64-bit architecture. You can integrate that manually or using Pod. I personally recommend Pod.




回答2:


I seems that your framework was built and published the binary for the real device - armv7, armv7s, arm64 and you try to run a build for a simulator - x86_64.

Usually when a publisher wants to share a library he should create a Universal aka Fat binary using lipo[About] command.

  • If it is open source project you can import the project and Xcode will solve this issue
  • If it is closed source you can try to find it on Cocoapods or ask the publisher to upgrade the framework


来源:https://stackoverflow.com/questions/55967499/how-to-fix-this-error-could-not-find-module-czsblesdk-for-architecture-x86

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!