Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

ios Xcode 14.1 Thread 1: EXC_BAD_ACCESS (code=1, address=0x0),ios Xcode 14.1 Error Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

$
0
0
I think there is a problem bacause UnityInitApplicationNoGraphics(UnityDataBundleDir()) is nil, so can I know how put the value instead of nil? UnityInitApplicationNoGraphics(UnityDataBundleDir()); [self selectRenderingAPI]; [UnityRenderingView InitializeForAPI: self.renderingAPI]; static NSString* bundleIdWithData = nil; extern "C" void UnitySetDataBundleDirWithBundleId(const char* bundleId) { if (bundleId) bundleIdWithData = [NSString stringWithUTF8String: bundleId]; else bundleIdWithData = nil; } extern "C" const char* UnityDataBundleDir() { static const char* dir = NULL; if (dir == NULL) { if (bundleIdWithData == nil) dir = AllocCString([[NSBundle mainBundle] bundlePath]); else dir = AllocCString([[NSBundle bundleWithIdentifier: bundleIdWithData] bundlePath]); } return dir; },I think there is a problem bacause UnityInitApplicationNoGraphics(UnityDataBundleDir()) is nil, so can I know how put the value instead of nil? UnityInitApplicationNoGraphics(UnityDataBundleDir()); [self selectRenderingAPI]; [UnityRenderingView InitializeForAPI: self.renderingAPI]; static NSString* bundleIdWithData = nil; extern "C" void UnitySetDataBundleDirWithBundleId(const char* bundleId) { if (bundleId) bundleIdWithData = [NSString stringWithUTF8String: bundleId]; else bundleIdWithData = nil; } extern "C" const char* UnityDataBundleDir() { static const char* dir = NULL; if (dir == NULL) { if (bundleIdWithData == nil) dir = AllocCString([[NSBundle mainBundle] bundlePath]); else dir = AllocCString([[NSBundle bundleWithIdentifier: bundleIdWithData] bundlePath]); } return dir; }

Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>