-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 12.5.1 fails to import Polar SDK 3.2.2 #210
Comments
@kononov-serg PolarBleSdk is compiled using the Swift 5.5.1 version. The warning says that your Swift version is 5.4.2. I recommend you update the Xcode to version 13. |
@JOikarinen I have updated Xcode to version 13.1 (installed latest from app store), now I have following error during project build: Failed to build module 'PolarBleSdk'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)', while this compiler is 'Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)'). Please select a toolchain which matches the SDK. |
@kononov-serg sorry for the wrong information. The previous release of Polar BLE SDK was obviously build with Swift 5.5, as you observed. I created new release which is now build with Swift 5.5.1. The new release shall will fix the problem. |
@JOikarinen thanks for the quick response! When it will be available in the pod repository? |
@kononov-serg should be available in pod repository: CocoaPods/Specs@96a406a Are you able to get it? |
@JOikarinen I tried to update dependency in the pod file to the new verion:
but
Then I tried to point dependency to the git, as followig:
It worked, problem with library import has gone, but the new error appeared during application start: Here are some logs:
Can this error be related to the PolarSdk? I tried to add |
When I to try reproduce your problem, I follow the steps like these:
Comment:
|
@JOikarinen Thank you very much for the help! I will try to apply your advices |
I still get this error after applying the above, Pls support |
@haianh230797 in my case the solution was to add xcframeworks to my project, as it is suggested here - https://github.com/polarofficial/polar-ble-sdk#xcframeworks |
thanks a lot, im using Xcode 12.4 and i used SDK v.3.2.1 then it work. |
I'm using XCode v13.1 and Polar SDK v3.2.4 |
Platform on which you observed the bug:
iOS
Device on which you observed the bug:
Device is not relevant for this bug
Describe the bug
I'm using XCode version 12.5.1, as it is recommended for the polar sdk 3.2.2, and I was trying to add polar library to my react native project. I added dependency to the pod file:
and just added a file with polar sdk import:
During project building, error occures with Swift version mismatch. I tried different versions of Xcode: 13.1, 13.0 (this on has required Swift version), and every time a has errors in build time.
How to Reproduce
If you know how the bug may be reproduced please add the steps here
Screenshots and logs
Failed to build module 'PolarBleSdk' from its module interface; the compiler that produced it, 'Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.
The text was updated successfully, but these errors were encountered: