NGromann / SwiftHtmlPdf

Generate HTML and PDF documents by using template html files and filling them with your data
MIT License
8 stars 3 forks source link

Building for Catalyst fails #3

Open NGromann opened 4 years ago

NGromann commented 4 years ago

Building for Mac using catalyst fails with the following error message:

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

NGromann commented 4 years ago

The export button in the PDF Preview causes the app to crash

2020-05-16 21:21:31.130948+0200 SwiftHtmlPdfExample[8693:265177] [xpc.exceptions] <NSXPCConnection: 0x600003028360> connection to service on pid 8697 named com.apple.textkit.nsattributedstringagent: Exception caught during decoding of reply to message 'renderHTML:options:withReply:', dropping incoming message and calling failure block.

Ignored Exception: Exception while decoding argument 1 (#2 of invocation): <NSInvocation: 0x600001754000> return value: {v} void target: {@?} 0x0 (block) argument 1: {@} 0x6000002a4420 argument 2: {@} 0x0 argument 3: {@} 0x0

Exception: value for key 'NSBackgroundColor' was of unexpected class 'NSColor'. Allowed classes are 'UIColor'. ( 0 CoreFoundation 0x00007fff2c14f8ab __exceptionPreprocess + 250 1 libobjc.A.dylib 0x00007fff62409805 objc_exception_throw + 48 2 Foundation 0x00007fff2e735903 -[NSXPCDecoder _validateAllowedClass:forKey:allowingInvocations:] + 527