-
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
Xcode project does not build after adding ObjectBox using SPM #59
Comments
Thanks for reporting. The instructions at https://swift.objectbox.io/install indicate that the Can you share the full error message? Also it would be helpful to know which version of macOS, XCode and Swift you are using! |
Thanks for getting back to me, macOS Monteray: 12.2.1 That is the full error message, the only thing I've removed is some of the file path. Sorry if I'm being dense but what do you mean "From within the ObjectBox package", cd to the package directory? |
@ChristianFox any chance you can use Cocoapods? SPM is still WIP... |
Yeah I'll give that a go |
It works for me with Cocoapods |
OK, closing this then. For people looking to report issues with Swift Package Manager please share your feedback in #19. |
Describe the bug
Xcode project does not build after adding ObjectBox using SPM
Basic info (please complete the following information):
To Reproduce
gem install xcodeproj
cocoapod
directory but it failed saying something along the lines of "can't find project files in this location", so I cd'd to the project root and then ran the script using it's full path.Expected behavior
App to build successfully
Logs, stack traces
Script: /Volumes/.../DerivedData/ObjectBoxTryout2-cdretzkgkdmcmvdywyijqqhssfcv/SourcePackages/checkouts/objectbox-swift/Source/ios-framework/cocoapod/generate_sources.sh
Script realpath: /Volumes/.../DerivedData/ObjectBoxTryout2-cdretzkgkdmcmvdywyijqqhssfcv/SourcePackages/checkouts/objectbox-swift/Source/ios-framework/cocoapod/generate_sources.sh
error: Cannot find Sourcery in the expected location at '/Volumes/.../DerivedData/ObjectBoxTryout2-cdretzkgkdmcmvdywyijqqhssfcv/SourcePackages/checkouts/objectbox-swift/Source/ios-framework/cocoapod/Sourcery.app/Contents/MacOS/Sourcery'
The text was updated successfully, but these errors were encountered: