damuellen / xlsxwriter.swift

Other
57 stars 16 forks source link

SPM Issues #5

Open willm132 opened 2 years ago

willm132 commented 2 years ago

xlsxwriter.h:1:10: 'xlsxwriter.h' file not found with include; use "quotes" instead

Cell_Range: Could not build Objective-C module 'Cxlsxwriter'

damuellen commented 2 years ago

I have already changed the header several times. This is how it works for me on macOS 12, Ubuntu 18.04. Under Windows 10 I use these flags to build -Xswiftc -LC:/vcpkg/installed/x64-windows/lib/ -Xcc -IC:/vcpkg/installed/x64-windows/include/

wonder2011 commented 1 year ago

@damuellen having same issue and I don't know how to solve this. Any help please ?

damuellen commented 1 year ago

@wonder2011 You need to install the C library first. On macOS you can also use brew. brew install libxlsxwriter

udelunar commented 9 months ago

Good morning, on a Xcode 15 with MacOS Ventura , 13.6 I have the same problem. I have installed as recommended: brew install libxlsxwriter

But I still encounter the same problem.

Could you please help me?

udelunar commented 8 months ago

Hello, I created a fork about your lib (it is amazing) https://bitbucket.org/udelunar/excelexport/src/master/

I have created a swiftPackageManager with both the C library and a swift wrapper. This greatly simplifies integration for developers. I haven't added all the use cases, but it's a start. If you ever move the lib to a swiftpackageManager, I'll remove my version and use yours.

Best regards!