Skip to content

Commit 87603ba

Browse files
committed
fix for release and debug builds
1 parent e84083d commit 87603ba

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ios/RNUnityView.mm

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#import "RNUnityView.h"
2-
2+
#ifdef DEBUG
3+
#include <mach-o/ldsyms.h>
4+
#endif
35
#ifdef RCT_NEW_ARCH_ENABLED
46
using namespace facebook::react;
57
#endif
@@ -18,7 +20,11 @@
1820
UnityFramework* ufw = [bundle.principalClass getInstance];
1921
if (![ufw appController])
2022
{
21-
[ufw setExecuteHeader: &_mh_dylib_header];
23+
#ifdef DEBUG
24+
[ufw setExecuteHeader: &_mh_dylib_header];
25+
#else
26+
[ufw setExecuteHeader: &_mh_execute_header];
27+
#endif
2228
}
2329

2430
[ufw setDataBundleId: [bundle.bundleIdentifier cStringUsingEncoding:NSUTF8StringEncoding]];

0 commit comments

Comments
 (0)