Skip to content

Commit

Permalink
fixe ENABLE_BITCODE property setup in the PostProcess script
Browse files Browse the repository at this point in the history
  • Loading branch information
x401om committed Apr 25, 2023
1 parent 12194b2 commit 49180aa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Assets/AdaptySDK/Plugins/iOS/Editor/AdaptySDKPostProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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");

Expand Down

0 comments on commit 49180aa

Please sign in to comment.