Building on OS X

313 views
Skip to first unread message

Alan McKean

unread,
Jan 3, 2015, 8:16:27 PM1/3/15
to mobile-c...@googlegroups.com
I have been trying to build for OS X and I keep getting a linker error:

ld: framework not found CoreImage for architecture x86_64

Any ideas? I tried linking QuartCore in but to no effect. What in CouchbaseLite is using CoreImage?

Jens Alfke

unread,
Jan 3, 2015, 8:19:44 PM1/3/15
to mobile-c...@googlegroups.com

On Jan 3, 2015, at 5:16 PM, Alan McKean <alanw...@gmail.com> wrote:

I have been trying to build for OS X and I keep getting a linker error:
ld: framework not found CoreImage for architecture x86_64

What project are you trying to build? Couchbase Lite doesn't use Core Image.

—Jens

Alan McKean

unread,
Jan 3, 2015, 8:28:42 PM1/3/15
to mobile-c...@googlegroups.com
I figured it didn't, but haven't any idea where it's coming from. I have a simple app of my own that links CouchbaseLite.framework and uses CBLModel. It must be coming from somewhere other than CouchbaseLite but the error started right when I linked in CouchbaseLite. The app currently uses and empty window and no graphics calls of any kind. Weird!

I'm assuming that the same frameworks (CFNetwork, SystemConfiguration,etc.) need to be brought in to build.

Alan McKean

unread,
Jan 3, 2015, 8:55:54 PM1/3/15
to mobile-c...@googlegroups.com
I found it. I had put the -ObjC flag in 'Other Linker Flags' and it caused the build to report the CoreImage problem. Who woulda thunk it?

Jens Alfke

unread,
Jan 3, 2015, 9:08:31 PM1/3/15
to mobile-c...@googlegroups.com

On Jan 3, 2015, at 5:55 PM, Alan McKean <alanw...@gmail.com> wrote:

I found it. I had put the -ObjC flag in 'Other Linker Flags' and it caused the build to report the CoreImage problem. Who woulda thunk it?

The -ObjC flag will keep class categories from getting dead-stripped. Normally you want that. It sounds like there's a category somewhere in your source code that calls Core Image. The problem is that your app linked, but if something else tries to call one of those stripped category methods, it'll throw an exception at runtime.

—Jens

Alan McKean

unread,
Jan 4, 2015, 12:17:27 AM1/4/15
to mobile-c...@googlegroups.com
I have no categories in my simplified project and no calls to CoreImage. It's really a simple project ... so far. I found the problem by creating a new project with only CouchbaseLite linked, along with the -ObjC flag.

Jens Alfke

unread,
Jan 4, 2015, 6:24:08 PM1/4/15
to mobile-c...@googlegroups.com

On Jan 3, 2015, at 9:17 PM, Alan McKean <alanw...@gmail.com> wrote:

I have no categories in my simplified project and no calls to CoreImage. It's really a simple project ... so far. I found the problem by creating a new project with only CouchbaseLite linked, along with the -ObjC flag.

How exactly are you linking it? The expected way is that you link against CouchbaseLite.framework, which is a dynamic library. That won't add any link dependencies on your app itself, i.e. even if Couchbase Lite used Core Image, your app target wouldn't need to link against it.

—Jens

Pasin Suriyentrakorn

unread,
Mar 13, 2015, 5:53:02 AM3/13/15
to mobile-c...@googlegroups.com
I just ran into this myself but what happened was that I built the framework with 'Continuous iOS' instead of 'CBL Mac' scheme. 

So when I used the framework built with the 'Continuous iOS' in an OSX Project, I received "ld: framework not found CoreImage for architecture x86_64" error.

-- Pasin
Reply all
Reply to author
Forward
0 new messages