VirgilSecurity / virgil-sdk-x

Virgil Core SDK allows developers to get up and running with Virgil Cards Service API quickly and add end-to-end security to their new or existing digital solutions to become HIPAA and GDPR compliant and more.
https://virgilsecurity.com/
Other
27 stars 5 forks source link

Error when linking VirgilCryptoFoundation arm64 iOS Simulator with bitcode enabled #56

Closed jakov-clay closed 2 years ago

jakov-clay commented 2 years ago

Hi, I'm really glad that you decided to move to xcframework and support arm64 iOS Simulator.

I have some issues when building some of your library dependencies for this architecture.

ld: bitcode bundle could not be generated because '/xxxx/DerivedData/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates/VSCCrypto/Common/VSCCommon.framework/VSCCommon' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file 'xxxxx/DerivedData/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates/VSCCrypto/Common/VSCCommon.framework/VSCCommon' for architecture arm64

I have a framework that I build with your library as dependency. I can't seem to find a way to prevent this problem. I have to build my framework with bitcode enabled. Is it maybe possible that you did not build VSCCommon framework with xcodebuild archive command? Here is a screenshot of Xcode error:

Screenshot 2022-02-03 at 17 33 33
SergeySeroshtan commented 2 years ago

Hi @jakov-clay. Would you, please, create a test project that reproduce this issue?

jakov-clay commented 2 years ago

It was issue on my side.