From 49180aa5cc0eee249df3b7794d21b7ffedd9fc3d Mon Sep 17 00:00:00 2001 From: Alexey Goncharov Date: Tue, 25 Apr 2023 13:54:56 +0200 Subject: [PATCH] fixe ENABLE_BITCODE property setup in the PostProcess script --- .../Plugins/iOS/Editor/AdaptySDKPostProcess.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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");