mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[PR #94] [CLOSED] Fix including xlsxwriter as a CocoaPod on macOS. #414
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#414
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jmcnamara/libxlsxwriter/pull/94
Author: @MrMage
Created: 2/21/2017
Status: ❌ Closed
Base:
master← Head:master📝 Commits (7)
fd56244Fix including xlsxwriter as a CocoaPod on macOS.33007b8Minor documentation fix.903068eMerge branch 'master' of https://github.com/jmcnamara/libxlsxwriter66c378cMerge branch 'master' of https://github.com/jmcnamara/libxlsxwriter4ddf376Add a static-library CocoaPod variant as a subspec.8460d61Augment the summary of the 'StaticLibrary' CocoaPod.a7e37dcRemove the StaticLibrary podspecs again - turns out CocoaPods doesn't like subspecs overriding the module map.📊 Changes
6 files changed (+6 additions, -156 deletions)
View changed files
➖
License.txt(+0 -150)📝
cocoapods/libxlsxwriter-umbrella.h(+1 -1)📝
cocoapods/libxlsxwriter.modulemap(+2 -2)📝
include/xlsxwriter/workbook.h(+1 -1)📝
include/xlsxwriter/worksheet.h(+1 -1)📝
libxlsxwriter.podspec(+1 -1)📄 Description
Explanation for this change:
Previously, CocoaPods would set up the framework target such that
xlsxwriter.hwould appear in the framework's main directory, alongside thexlsxwriterbinary. It appears that thecodesignutility only expects binaries in that directory, though, with all headers being in theHeaderssubdirectory (otherwise it fails with anxlsxwriter.h: code object is not signed at allmessage). This change modifies the header_mappings_dir to ensure thatxlsxwriter.his inHeaders, with all other headers inHeaders/xlsxwriter, and adjusts the paths in the module map accordingly.In addition, the umbrella header is modified to include Foundation rather than UIKit, as the former is sufficient to compile the module while the latter is not available on macOS.
This change fixes compiling, signing and linking with the module on my macOS target. However, I haven't reviewed its correctness for iOS or other implications (although I would expect everything to work), so please review these four lines carefully ;-)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.