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"
How to fix this error " Could not find module 'CzsBleSdk' for architecture 'x86_64'; found: arm64, arm "
Asked Answered
It sounds like you are trying to create a simulator build but you don't have an x86 version of that framework; you can't use Bluetooth in the simulator anyway. Test using a real device –
Fudge
yes but i only need to run this app, it says always build failed. –
Urdar
Are you trying to run it on a device or the simulator? –
Fudge
the simulator, just to verify the app if it can run or not, and no, i can't run it nor build it. –
Urdar
You can't build this for the simulator as you don't have an x86 version of the framework. If you can't get an x86 build of the framework then you will need to limit your testing to a real device. Realistically you need to use a real device anyway since, as I said, you can't use BLE on the simulator. –
Fudge
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.
the problem is i've been searching for this SDK but i didn't find it. and the project is working with this SDK. –
Urdar
This must be a private framework. You need to contact the developer who created this. Else there is no option. –
Humphries
@Humphries I have a framework xcode project include source code, how to I build to a private framework? –
Grapheme
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
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.
the problem is i've been searching for this SDK but i didn't find it. and the project is working with this SDK. –
Urdar
This must be a private framework. You need to contact the developer who created this. Else there is no option. –
Humphries
@Humphries I have a framework xcode project include source code, how to I build to a private framework? –
Grapheme
© 2022 - 2024 — McMap. All rights reserved.