Giter VIP home page Giter VIP logo

Comments (4)

sammcd avatar sammcd commented on June 25, 2024

Thanks for using ARCore, and for letting me know that you are not using Cocoapods in your project. It is very helpful for me to know how developers are using the framework, and this helps me know that instructions on how to use our framework outside of Cocoapods should be more of a priority.

The type of the error here is an NSError** not an NSError*. This means you must pass a pointer to the NSError*. Simply replace your method to look more like:

GARSession* gSession = [GARSession sessionWithAPIKey:@"AAAAAAAAAAAAAAA" bundleIdentifier:nil error:&error];

And you should be able to read the error. Apple has more information on this here: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ErrorHandlingCocoa/CreateCustomizeNSError/CreateCustomizeNSError.html

Once you are able to see the error, feel free to let me know if it isn't intuitive.

from arcore-ios-sdk.

richrdp avatar richrdp commented on June 25, 2024

Thanks for your very fast reply!

The error contains an error code, but does not provide a readable message/userInfo:
error NSError *
domain: "GARSession" - code: 18446744073709551615 0x00000001c425e690
_userInfo id 0x0 0x0000000000000000

from arcore-ios-sdk.

sammcd avatar sammcd commented on June 25, 2024

I think you are getting error code -1, but it is being printed as an unsigned int and is underflowing.

If I had to guess I think you may not have the Resources bundle that is shipped with the Cocoapod. In our sample app this is packaged by the build phase called Copy Pods Resources. I think things should work if you include this resource bundle in your app.

If this isn't correct would you mind giving me the output of NSLog(@"Error: %@", error.localizedDescription);?

Thanks,

from arcore-ios-sdk.

sammcd avatar sammcd commented on June 25, 2024

I'm to close this issue due to inactivity. But feel free to reach out if I haven't resolved your issue or if there is anything else I can help with!

from arcore-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.