What does "error: definition of … must be imported from module … before it is required" mean?
What does "error: definition of … must be imported from module … before it is required" mean?
- Subject: What does "error: definition of … must be imported from module … before it is required" mean?
- From: Jens Alfke <email@hidden>
- Date: Thu, 19 Jun 2014 13:42:46 -0700
I’ve started getting this compiler error in Xcode 6 beta 2:
In file included from /Couchbase/CouchbaseLite/Source/CBL_Router.m:22: /Couchbase/CouchbaseLite/Source/CBLInternal.h:66:12: error: definition of 'CBLDatabaseChange' must be imported from module 'CouchbaseLite.CBLDatabaseChange' before it is required @interface CBLDatabaseChange () ^ In module 'CouchbaseLite' imported from /Couchbase/CouchbaseLite/Source/CBL_Revision.h:10: /Couchbase/CouchbaseLite/Source/CBLDatabaseChange.h:16:12: note: previous definition is here @interface CBLDatabaseChange : NSObject <NSCopying> ^ 1 error generated.
I’m not sure what this means or what’s triggering it. The context is that I have a project with one target that builds a framework, and another target that uses the framework. The error is in building that dependent target. When Xcode 6 beta 1 came out I enabled the setting to make the framework a module, and that worked fine until I installed beta 2, but now I get this error.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden