[GH-ISSUE #367] Utility.h macros not available with cocoapods in iOS #294

Closed
opened 2026-05-05 12:06:40 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @tekayamarouene on GitHub (Feb 25, 2022).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/367

Originally assigned to: @jmcnamara on GitHub.

Hello team,

I am using libxlsxwriter with cocoapods.
My problem is that i can't use macros in the Utility.h file like CELL("A1").
I am using OS = iOS and libxlsxwriter 1.1.4 with swift language.
For the sample code you can use this repository:
https://github.com/FrankenApps/LibXlsxWriterSwiftSample

Thank you

Originally created by @tekayamarouene on GitHub (Feb 25, 2022). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/367 Originally assigned to: @jmcnamara on GitHub. Hello team, I am using libxlsxwriter with cocoapods. My problem is that i can't use macros in the Utility.h file like CELL("A1"). I am using OS = iOS and libxlsxwriter 1.1.4 with swift language. For the sample code you can use this repository: https://github.com/FrankenApps/LibXlsxWriterSwiftSample Thank you
gitea-mirror 2026-05-05 12:06:40 -06:00
Author
Owner

@jmcnamara commented on GitHub (Feb 25, 2022):

Isn't that because C macros aren't available in Swift:

Using Imported C Macros in Swift

C macros that are more complex than simple constant definitions have no counterpart in Swift.

<!-- gh-comment-id:1050682036 --> @jmcnamara commented on GitHub (Feb 25, 2022): Isn't that because C macros aren't available in Swift: [Using Imported C Macros in Swift](https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/using_imported_c_macros_in_swift) > C macros that are more complex than simple constant definitions have no counterpart in Swift.
Author
Owner

@tekayamarouene commented on GitHub (Feb 25, 2022):

Isn't that because C macros aren't available in Swift:

Using Imported C Macros in Swift

C macros that are more complex than simple constant definitions have no counterpart in Swift.

yes this is right. Thank you for your quick response.

<!-- gh-comment-id:1050691628 --> @tekayamarouene commented on GitHub (Feb 25, 2022): > Isn't that because C macros aren't available in Swift: > > [Using Imported C Macros in Swift](https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/using_imported_c_macros_in_swift) > > > C macros that are more complex than simple constant definitions have no counterpart in Swift. yes this is right. Thank you for your quick response.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#294
No description provided.