• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What does "error: definition of … must be imported from module … before it is required" mean?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: What environment var corresponds to "Enable Guard Malloc"?
  • Next by Date: Linking to library in Xcode 5.1.1
  • Previous by thread: Re: What environment var corresponds to "Enable Guard Malloc"?
  • Next by thread: Linking to library in Xcode 5.1.1
  • Index(es):
    • Date
    • Thread