问题
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