You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TODO Tell us exactly how to reproduce the problem.
Create a new xcode App
Go to File -> Add Package Dependency
Paste in https://github.com/objectbox/objectbox-swift-spm and set dependency rule to Next Major Version, set the version to 4.1.0-beta.2
Add package and set target to the created xcode project
Right click project and run the ObjectBoxGeneratorCommand
Expected behavior
The generator to run with no errors
Actual behavior
A crash.
Logs, stack traces
Running the setup.rb file similarly with the cocoapods approach nets me an error log like below with a more detailed idea on whats happening but unsure how to fix it
Logs
🔸 Looking for project files in the current directory ...🔸 Found a single project.🔸 Using "/Users/User/Repositories/Project/Project/Project.xcodeproj"🔹 Adding a new group for generated files at `./generated/`...Pods/ObjectBox/setup.rb:225:in `block in <main>': undefined method `name' for #<Xcodeproj::Project::Object::PBXFileSystemSynchronizedRootGroup:0x0000000124a39cb8> (NoMethodError) from Pods/ObjectBox/setup.rb:225:in `index' from Pods/ObjectBox/setup.rb:225:in `<main>'
The text was updated successfully, but these errors were encountered:
Thanks for reporting! This is a known issue when using an Xcode 16 project that uses buildable folders instead of groups (in the Xcode 16 release notes search for "Buildable folders").
For our reference, this is internal issue objectbox-swift#308
This will be fixed with an upcoming version as it requires major changes to the ObjectBox generator.
Until then, we recommend to stick to the Xcode 15.3 project format.
If you already have created or upgraded to an Xcode 16 project, you can change the format in the Project Navigator pane (on the right) after clicking on the project. Also make sure to convert any folders to groups.
Correction: the latest CocoaPods and Swift Package releases "only" support Xcode 16 projects. "Buildable folders" still have to be converted to groups for the ObjectBox generator to find annotated classes.
Is there an existing issue?
Build info
Steps to reproduce
TODO Tell us exactly how to reproduce the problem.
https://github.com/objectbox/objectbox-swift-spm
and set dependency rule toNext Major Version
, set the version to4.1.0-beta.2
ObjectBoxGeneratorCommand
Expected behavior
The generator to run with no errors
Actual behavior
A crash.
Logs, stack traces
Running the setup.rb file similarly with the cocoapods approach nets me an error log like below with a more detailed idea on whats happening but unsure how to fix it
Logs
The text was updated successfully, but these errors were encountered: