diff --git a/ios/RNUnityView.mm b/ios/RNUnityView.mm index 6257f0b..a4caa74 100644 --- a/ios/RNUnityView.mm +++ b/ios/RNUnityView.mm @@ -1,5 +1,7 @@ #import "RNUnityView.h" - +#ifdef DEBUG +#include +#endif #ifdef RCT_NEW_ARCH_ENABLED using namespace facebook::react; #endif @@ -18,7 +20,11 @@ UnityFramework* ufw = [bundle.principalClass getInstance]; if (![ufw appController]) { - [ufw setExecuteHeader: &_mh_execute_header]; +#ifdef DEBUG + [ufw setExecuteHeader: &_mh_dylib_header]; +#else + [ufw setExecuteHeader: &_mh_execute_header]; +#endif } [ufw setDataBundleId: [bundle.bundleIdentifier cStringUsingEncoding:NSUTF8StringEncoding]]; diff --git a/package.json b/package.json index d1170a7..063bf5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@azesmway/react-native-unity", - "version": "1.0.10", + "version": "1.0.11", "description": "React Native Unity", "main": "lib/commonjs/index", "module": "lib/module/index",