diff --git a/Assets/AdaptySDK/Plugins/iOS/Editor/AdaptySDKPostProcess.cs b/Assets/AdaptySDK/Plugins/iOS/Editor/AdaptySDKPostProcess.cs index ee5fed4..ebf1921 100644 --- a/Assets/AdaptySDK/Plugins/iOS/Editor/AdaptySDKPostProcess.cs +++ b/Assets/AdaptySDK/Plugins/iOS/Editor/AdaptySDKPostProcess.cs @@ -26,6 +26,10 @@ static void OnPostProcessBuildIOS(BuildTarget buildTarget, string buildPath) { var testTargetGuid = proj.TargetGuidByName(PBXProject.GetUnityTestTargetName()); var mainTargetGuid = proj.GetUnityMainTargetGuid(); + var frameworkTargetGuid = proj.GetUnityFrameworkTargetGuid(); + + UpdateBitcodeProperty(proj, mainTargetGuid); + UpdateBitcodeProperty(proj, frameworkTargetGuid); UpdateBuildProperties(proj, testTargetGuid); CopyAdaptyInfoPlist(buildPath, proj, mainTargetGuid); @@ -35,8 +39,12 @@ static void OnPostProcessBuildIOS(BuildTarget buildTarget, string buildPath) { } #if UNITY_IOS - static void UpdateBuildProperties(PBXProject project, string targetGuid) { + static void UpdateBitcodeProperty(PBXProject project, string targetGuid) + { project.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO"); + } + + static void UpdateBuildProperties(PBXProject project, string targetGuid) { project.SetBuildProperty(targetGuid, "SWIFT_OBJC_BRIDGING_HEADER", "Libraries/AdaptySDK/Plugins/iOS/Source/AdaptyUnityPlugin-Bridging-Header.h"); project.SetBuildProperty(targetGuid, "SWIFT_OBJC_INTERFACE_HEADER_NAME", "AdaptyUnityPlugin-Swift.h");