Skip to content
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

CBLUICollectionSource doesn't build in beta release due to direct referenced to CouchbaseLite.h #156

Closed
n1rvana opened this issue Oct 12, 2013 · 1 comment

Comments

@n1rvana
Copy link

n1rvana commented Oct 12, 2013

This issue was experienced using the beta release on mobile.couchbase.com, which is downloaded from this URL:
http://packages.couchbase.com/releases/couchbase-lite/ios/1.0-beta/couchbase-lite-community-ios_1.0-beta.zip
which is linked to with the "download" button here:
http://www.couchbase.com/communities/couchbase-lite

Following these instructions:
http://docs.couchbase.com/couchbase-lite/cbl-ios/#adding-couchbase-lite-to-your-app

I'm using Xcode 5.0GM (5A1412) on Mavericks.

Replication of the issue:

  1. Create a new project (I just chose the single view template)
  2. Follow the steps in the guide to add the CouchbaseLite Framework
  3. Build, observe success
  4. Add #import <CouchbaseLite/CouchbaseLite.h> to a project file.
  5. Build again, and again observe success.
  6. Add the SBLUICollectionSource.m & h to your project.
  7. They won't build because they refer to "CouchbaseLite.h" directly.
  8. Change the import in CBLUICollectionSource to use #import <CouchbaseLite/CouchbaseLite.h>
  9. Build is fixed.

I suspect that when building from source, referring to the .h file directly is not a problem, and that this problem only exists in the framework version. However, when building from source, #import <CouchbaseLite/CouchbaseLite.h> probably wouldn't work?

I'm not sure what way of handling this fits the project goals and intentions so I'm merely reporting the issue.

@n1rvana
Copy link
Author

n1rvana commented Oct 12, 2013

Step #4 should read "4. Add #import <CouchbaseLite/CouchbaseLite.h> to root view controller header"

@snej snej closed this as completed in 6c2e30b Oct 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant