Azure / azure-notificationhubs-ios

Azure Notification Hubs SDK for Apple
Apache License 2.0
33 stars 31 forks source link

[BUG] Unable to use the released 3.1.5 xcframework build with my application, error when archiving: "bitcode bundle could not be generated" #127

Open TilakGondi opened 2 years ago

TilakGondi commented 2 years ago

Describe the bug I am integrating the azurenotificationhub SDK with my framework project, when I create the archive for simulator architecture of my framework I get the error - "ld: bitcode bundle could not be generated because '/Users/xxxxxx/Library/Developer/Xcode/DerivedData/MySDK-dozgbwlspdaldbhkykrfqephjqxb/Build/Intermediates.noindex/ArchiveIntermediates/AuthSDK/BuildProductsPath/Release-iphonesimulator/WindowsAzureMessaging.framework/WindowsAzureMessaging(SBNotificationHub.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)"

Exception or Stack Trace "ld: bitcode bundle could not be generated because '/Users/xxxxxx/Library/Developer/Xcode/DerivedData/MySDK-dozgbwlspdaldbhkykrfqephjqxb/Build/Intermediates.noindex/ArchiveIntermediates/AuthSDK/BuildProductsPath/Release-iphonesimulator/WindowsAzureMessaging.framework/WindowsAzureMessaging(SBNotificationHub.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)"

To Reproduce Steps to reproduce the behavior: Integrate the WindowsAzureMessaging.xcframework with project and try to generate the archive from command line using the "xcodebuild archive -scheme MySDK -destination "generic/platform=iOS Simulator" -archivePath "../MySDKFramework/MySDK-iphonesimulator" SKIP_INSTALL=NO ENABLE_BITCODE=YES"

Expected behavior I need to generate the .xcarchive for my project with ENABLE_BITCODE=YES. So that I can create the xcframework version of my SDK.

Setup (please complete the following information):

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report