-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to run demo, running into errors #88
Comments
Please describe how you setup ObjectBox. Did you follow one of the ways described in https://swift.objectbox.io/install? Which one? |
Yes i downloaded it via the swift package, using version 4.1.0-beta.1 |
Please give a bit more details. E.g. https://swift.objectbox.io/install#swift-package mentions two variations. It would be best if you re-iterate all the steps that you have taken so far. Thanks! |
Apologies! I followed this essentially (from the docs): Set up an Xcode project Copy Finally, when asked, add the ObjectBox.xcframework to your app target. Now, you are all set to define your first ObjectBox entities. To continue check the Getting Started guide or the example project. That's basically all I did before trying to use the demo example directly in my code and also have Claude try to help me out taking in context the xcode errors. Not getting any errors importing ObjectBox so I'm guessing it was correctly added as a dependency. |
It looks like you still need to run the code generator: https://swift.objectbox.io/getting-started#generate-objectbox-code Note: I labeled this issue with "more info required" so it will auto-close in a few days if there are no follow-up comments. |
Hi, i'm trying to get a simple demo working and running into issues. Basically copy/pasted your code directly into a swift file in my xcode project and getting several errors:
Also tried this to try to handle the 'top level' bug as seen above:
Apologies in advance if this is an obvious fix, I'm a swift/xcode noob trying to muddle his way through with AI.
The text was updated successfully, but these errors were encountered: