Skip to content

Commit

Permalink
fix for release and debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jb-san committed Sep 20, 2024
1 parent e84083d commit 87603ba
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ios/RNUnityView.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "RNUnityView.h"

#ifdef DEBUG
#include <mach-o/ldsyms.h>
#endif
#ifdef RCT_NEW_ARCH_ENABLED
using namespace facebook::react;
#endif
Expand All @@ -18,7 +20,11 @@
UnityFramework* ufw = [bundle.principalClass getInstance];
if (![ufw appController])
{
[ufw setExecuteHeader: &_mh_dylib_header];
#ifdef DEBUG
[ufw setExecuteHeader: &_mh_dylib_header];
#else
[ufw setExecuteHeader: &_mh_execute_header];
#endif
}

[ufw setDataBundleId: [bundle.bundleIdentifier cStringUsingEncoding:NSUTF8StringEncoding]];
Expand Down

0 comments on commit 87603ba

Please sign in to comment.