Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Building for Mac application #233

Closed
tomtaylor opened this Issue · 2 comments

2 participants

@tomtaylor

Thanks for such a brilliant project - I'm looking forward to replacing all the idiosyncrasies of NSAttributedString initWithHTML on Mac with something with much more control.

But I'm having a bit of trouble including DTCoreText in a Mac application. I've followed the build instructions as for iOS, pulling the project as a submodule, fetching the dependencies, setting the header search paths and including the Static Library.

I'm seeing the following error when I build.

    Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_DTHTMLAttributedStringBuilder", referenced from:
          objc-class-ref in NPCHTMLContentItem.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

At the same time, I don't seem to be able to run the MacUnitTests as it complains that #import "DTHTMLParser.h" is not found in DTHTMLAttributedStringBuilder.h.

Am I missing something obvious here?

@Cocoanetics
Owner

I guess that you are probably missing the valid architecture and supported platform for mac. Check the build log, it probably only builds for arm.

I'll fix the unit test, the header is now in a sub-module.

@Cocoanetics
Owner

I fixed the unit test, the libDTHTMLParser from DTFoundation did not build for Mac. ed8f06e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.