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 support? #5

Closed
kerrmarin opened this issue May 28, 2022 · 4 comments
Closed

Bitcode support? #5

kerrmarin opened this issue May 28, 2022 · 4 comments

Comments

@kerrmarin
Copy link

Hi,

I have used this library in a project and when archiving my (iOS) app, I get an error saying that:

ld: bitcode bundle could not be generated because '.../BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/icu4c-iosx/libicui18n.a(measunit.ao)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64

Is there a way to enable bitcode when building this library? I can of course disable bitcode from my app, but I'd rather not to that if possible.

@apotocki
Copy link
Owner

Hi,
I tried to build ICU with bitcode support but failed. It seems that ICU codebase isn't compatible with bitcode generation at the moment. For me, bitcode is an absolutely optional feature that is hardly valuable, so I haven't found a time to find a solution. I'm sorry.

@kerrmarin
Copy link
Author

Thanks @apotocki. I will open a bug with ICU. Out of curiosity, what command did you use to try and build with bitcode?

@apotocki
Copy link
Owner

Hi. I'm sorry I seemed to misle you. Today I successfully compiled the project with -fembed-bitcode flag. Also, I decreased the required minimum ios version to 13.4. All changes are in 71 branch and 71.1.2 tag

@kerrmarin
Copy link
Author

That's great news, thanks for this @apotocki

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

No branches or pull requests

2 participants