Skip to content
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

Bitcode and Kotlin 1.8 problems - Will there be Updates for this Library? #506

Open
aetrocks opened this issue May 31, 2023 · 5 comments
Open
Labels

Comments

@aetrocks
Copy link

Hello everyone,

will there be any updated version of this library, or is this library not supported anymore?

Since Xcode 14 I get an Error Message that the Library should have Bitcode Enabled.
If I use Kotlin 1.8, I get an error because of the library too.
(If the Library is actively supported, I can further explain the errors or write a real issue post)

If anyone reads this and uses the library with KMM too and has a good workaround for this problem I would really be thankful.
It could be, that this is only a problem when using xcframeworks and KMM, but I am not sure about it.

Thanks for your help.

Simon

@philips77
Copy link
Member

Hi,
We have never tried it with KMM. For Android we have https://github.com/NordicSemiconductor/Android-DFU-Library.

This library is supported and I need to check what's going on. Of course Apple doesn't make it easy for us. Sorry!

@aetrocks
Copy link
Author

At the moment I tried to build my KMM Project not static and I always run in Bitcode Problems with the DFU Library. I would be glad if I could further use the Nordic Lib for DFU because I don't want to write it from scratch myself and I am pretty satisfied with the library.

At the moment I use the latest version of the dfu library 4.13.0.
If I try to build a dynamic KMM Fat Framework, I get the error:
iOSDFULibrary -> does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.

If I then try to disable Bitcode completely, I can build a dynamic Fat Framework, but also cannot install the iOS App with the error:
The code signature version is no longer supported.

At the moment I am on Kotlin Multiplatform 1.7.20.
If I try to use kotlin 1.8.22 I get a bunch of new iOSDFULibrary errors.

I would really appreciate your help.

@philips77
Copy link
Member

Unfortunately we don't have much KMM experience (yet). Did you try adding the DFU library as a module, not using SPM, and changing settings to match your needs?

@aetrocks
Copy link
Author

at the moment I added the lib with cocoapods through the KMM native cocoapods support. I think it would be an option to build the lib and disable bitcode, but this always seems a bit tacky to do.

Thanks for your fast replies, I really appreciate your help. I know that my problem is a real edge case that the library doesn't need to support and im really sorry for the inconvenience on this matter. @philips77

But since we are using pretty much nordic stuff I don't want to switch only for dfu to another library if possible.

@Wichnator
Copy link

Hi, I'm using this library in KMM project with disabled bitcode without any issue. I used cocoapods and Kotlin 1.8. But recently I switched the iOS part of KMM project to Swift Package Manager and upgrade Kotlin to 1.9.10 and all is working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants