Post

Replies

Boosts

Views

Activity

How to fix this Error?
Now there's no execution for one error and I'm asking a question for advice on this part. The code for the problem I'm currently experiencing is below, UnityFramework* UnityFrameworkLoad() {   NSString* bundlePath = nil;   bundlePath = [[NSBundle mainBundle] bundlePath];   bundlePath = [bundlePath stringByAppendingString: @"/Frameworks/UnityFramework.framework"];       NSBundle* bundle = [NSBundle bundleWithPath: bundlePath];       //if ([bundle isLoaded] == false) [bundle load]; original code   if ([bundle isLoaded] == false) [bundle isLoaded]; // modified code   //UnityFramework* ufw = [bundle.principalClass getInstance]; original code   UnityFramework* ufw = [bundle.class self];    // modified code   /*if (![ufw appController]). original code   {     // unity is not initialized     [ufw setExecuteHeader: &_mh_execute_header];   }*/   return ufw; } int main(int argc, char* argv[]) {   @autoreleasepool   {     id ufw = UnityFrameworkLoad();     [ufw runUIApplicationMainWithArgc: argc argv: argv];     return 0;   } } If you build in this state, [ufw runUIApplicationMainWithArgc: argc argv: argv]; In this part, Thread 1: + [NSBundle runUIApplicationMainWithArgc: argv:]: unrecognized selector sent to class 0x1e8b42e10 is output. CFRelease (NULL); If you add it above the line where the error is occurring, you will get an error with Thread 1: EXC_BREAKPOINT (code = 1, subcode = 0x197273e28). If anyone knows either solution, please explain.
1
1
3.5k
Jul ’22
How to fix this Error?
Now there's no execution for one error and I'm asking a question for advice on this part. The code for the problem I'm currently experiencing is below, UnityFramework* UnityFrameworkLoad() {   NSString* bundlePath = nil;   bundlePath = [[NSBundle mainBundle] bundlePath];   bundlePath = [bundlePath stringByAppendingString: @"/Frameworks/UnityFramework.framework"];       NSBundle* bundle = [NSBundle bundleWithPath: bundlePath];       //if ([bundle isLoaded] == false) [bundle load]; original code   if ([bundle isLoaded] == false) [bundle isLoaded]; // modified code   //UnityFramework* ufw = [bundle.principalClass getInstance]; original code   UnityFramework* ufw = [bundle.class self];    // modified code   /*if (![ufw appController]). original code   {     // unity is not initialized     [ufw setExecuteHeader: &_mh_execute_header];   }*/   return ufw; } int main(int argc, char* argv[]) {   @autoreleasepool   {     id ufw = UnityFrameworkLoad();     [ufw runUIApplicationMainWithArgc: argc argv: argv];     return 0;   } } If you build in this state, [ufw runUIApplicationMainWithArgc: argc argv: argv]; In this part, Thread 1: + [NSBundle runUIApplicationMainWithArgc: argv:]: unrecognized selector sent to class 0x1e8b42e10 is output. CFRelease (NULL); If you add it above the line where the error is occurring, you will get an error with Thread 1: EXC_BREAKPOINT (code = 1, subcode = 0x197273e28). If anyone knows either solution, please explain.
Replies
1
Boosts
1
Views
3.5k
Activity
Jul ’22
How to fix Thread 1: EXC_BAD_ACCESS?
I made a VR game using Unity. However, no errors occur when building this, but running it to test results in errors such as Thread 1: EXC_BAD_ACCESS (code=1, address=0x1f417c53400). I want to know how to fix this.
Replies
0
Boosts
0
Views
404
Activity
Jul ’21