krzyzanowskim / OpenSSL

OpenSSL package for SwiftPM, CocoaPod, and Carthage, multiplatform
https://swift.best
Other
910 stars 336 forks source link

The latest version was not build with full bitcode #98

Closed SarunyuPrasert closed 3 years ago

SarunyuPrasert commented 3 years ago

For xcode 12.1 I've tried to build a universal framework with script I'm using pod to install OpenSSL-Universal latest version 1.1.171 but i got this error.

bitcode bundle could not be generated because '/Users/.../.../.../Xcode/DerivedData/XXXSDK-fmvsbezudrnmfgaaiffvncrkhwac/Build/Intermediates.noindex/ArchiveIntermediates/XXXSDK-Universal/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/OpenSSL/OpenSSL.framework/OpenSSL' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/.../.../.../Xcode/DerivedData/XXXSDK-fmvsbezudrnmfgaaiffvncrkhwac/Build/Intermediates.noindex/ArchiveIntermediates/XXXSDK-Universal/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/OpenSSL/OpenSSL.framework/OpenSSL' for architecture armv7

bitcode bundle could not be generated because '/Users/.../.../.../Xcode/DerivedData/XXXSDK-fmvsbezudrnmfgaaiffvncrkhwac/Build/Intermediates.noindex/ArchiveIntermediates/XXXSDK-Universal/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/OpenSSL/OpenSSL.framework/OpenSSL' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/.../.../.../Xcode/DerivedData/XXXSDK-fmvsbezudrnmfgaaiffvncrkhwac/Build/Intermediates.noindex/ArchiveIntermediates/XXXSDK-Universal/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/OpenSSL/OpenSSL.framework/OpenSSL' for architecture arm64

I've tried so many solution on google and stack overflow but all of that didn't work.

Could someone help me about this error?

H1p3ri0n commented 3 years ago

The latest version indeed has problems on the latest XCode in Big Sur. But if you revert to the older version

pod 'OpenSSL-Universal', '1.1.17'

It will work. Hope the author fix the issue soon.

H1p3ri0n commented 3 years ago

I think we should leave this issue open. So that the author knows about it and other people can find this workaround, for now.

krzyzanowskim commented 3 years ago

The build options didn't change between 1.1.17 and 1.1.171 however, Cocoapods uses xcframework binary now and this may be a culprit

krzyzanowskim commented 3 years ago

It should be fine with 1.1.180 (hopefully, please let me know)

H1p3ri0n commented 3 years ago

Great, thanks a lot! 1.1.180 tested working on the latest BigSur and XCode.