google-ar / arcore-ios-sdk

ARCore SDK for iOS

Home Page:https://developers.google.com/ar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) error

binhao94 opened this issue · comments

Im getting this error "Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)" at this line of code "[ufw runUIApplicationMainWithArgc: argc argv: argv];"

int main(int argc, char* argv[])
{
    @autoreleasepool
    {
        id ufw = UnityFrameworkLoad();
        [ufw runUIApplicationMainWithArgc: argc argv: argv];
        return 0;
    }
}

Ive used the sample Unity project from Google (the tiger model) on XCode 15.2 and Unity 2022.3.20.f1 and followed the setup instructions. Ive ran pod install on the directory (and tried the SPM method as well in another separate test) but the error still appears after the build has succeeded.

Any help? Would be much appreciated!!