mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #337] Mac Catalyst issue with Cocoapods #272
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#272
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?
Originally created by @willm132 on GitHub (Jun 9, 2021).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/337
Originally assigned to: @jmcnamara on GitHub.
When compiling for Mac Catalyst I am getting this error:
Undefined symbols for architecture x86_64:
"_format_set_bold",
"_format_set_border",
"_format_set_border_color"
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@jmcnamara commented on GitHub (Jun 9, 2021):
The is just a standard link error. Make such that
-lxlsxwriteris on you link command line. She the standard variations here: https://libxlsxwriter.github.io/getting_started.html#gsg_using@willm132 commented on GitHub (Jun 9, 2021):
@jmcnamara I am using CocoaPods with Xcode
@jmcnamara commented on GitHub (Jun 10, 2021):
In that case I can't help you much since I don't use CocoaPods myself. Try the following sample code and see if it works: https://github.com/FrankenApps/LibXlsxWriterSwiftSample
Also, are you compiling on a M1 mac?
@willm132 commented on GitHub (Jun 10, 2021):
I use Intel iMac and M1 MacBook Pro
@jmcnamara commented on GitHub (Jun 10, 2021):
Do you see the same issue on both systems?
@willm132 commented on GitHub (Jun 10, 2021):
I have not used the M1 since adding xlsxwriter. I am currently on the iMac.
@jmcnamara commented on GitHub (Jun 10, 2021):
Ok. Can you try the sample app linked above and see if it works.
@willm132 commented on GitHub (Jun 10, 2021):
Yes, the sample did compile and work on Mac Catalyst. What do I need to do to get my project working?
@jmcnamara commented on GitHub (Jun 10, 2021):
I'd suggest using the sample application and add functionality until it is similar to the app you are trying to compile and use that to figure out why your project isn't working.
Either way I don't think this is a general libxlsxwriter issue, or something that I can help you with, so I am going to close this.
@willm132 commented on GitHub (Jun 10, 2021):
@jmcnamara When running via Sample it complies and runs fine, but if I try to build to export via AdHoc I am getting this error:
Umbrella header 'xlsxwriter/libxlsxwriter-umbrella.h' not found
@jmcnamara commented on GitHub (Jun 10, 2021):
@FrankenApps could you help with this issue.
@FrankenApps commented on GitHub (Jun 11, 2021):
I don't have an Apple Developer Account, so there isn't really a way I could reproduce this. I will still try and have a look...
@willm132 commented on GitHub (Jun 11, 2021):
Like I said it runs fine on the machine but will not archive
@willm132 commented on GitHub (Jun 14, 2021):
Any updated on this?
@jmcnamara commented on GitHub (Jun 14, 2021):
Hi Will, you may have better luck on a Catalyst or Cocoapod forum, or StackOverflow. There probably aren't too many Catalyst/Cocoapod users on here.
If you find a solution let us know.
@FrankenApps commented on GitHub (Jun 14, 2021):
@willm132 Have you checked this?
@willm132 commented on GitHub (Jun 14, 2021):
@FrankenApps yes I actually did try that but no luck still
@FrankenApps commented on GitHub (Jun 14, 2021):
Does it work when generating a signed .ipa? As stated above there is no real way to reproduce this for me...
@willm132 commented on GitHub (Jun 14, 2021):
If I run it from Xcode it installs on the device and works fine, when I go to Project > Archive, this is when it gives me the error
@FrankenApps commented on GitHub (Jun 14, 2021):
Aha, now I understand. But this only happens when archiving for mac. You can archive it just fine for iOS.
@willm132 commented on GitHub (Jun 14, 2021):
@FrankenApps Yes, my project supports Mac Catalyst.
@willm132 commented on GitHub (Jun 14, 2021):
Compile Swift source files (x86_64)
BuildProductsPath/Release-maccatalyst/libxlsxwriter/xlsxwriter.framework/Modules/module.modulemap:2:19: Umbrella header 'xlsxwriter/libxlsxwriter-umbrella.h' not found
Could not build Objective-C module 'xlsxwriter'
@FrankenApps commented on GitHub (Jun 14, 2021):
Well, I do know what the Issue is, but I don't know how to fix it.
There should be an
aliasfor theHeadersinBuildProductsPath/Release-maccatalyst/libxlsxwriter/xlsxwriter.framework, but it is not there.Current:

How it should be (Sourceful does this right):

@willm132 commented on GitHub (Jun 14, 2021):
Is this something I can manually add on my end to resolve this?
@FrankenApps commented on GitHub (Jun 14, 2021):
I don't know. Might have something to do with
Header Search Paths, but I don't know how to fix this. It should be possible to add this alias with a build script, because we know, that it should targetPods/libxlsxwriter/include, but I am definitely not an expert and have no idea how to do this. Also I don't know, why it works for debug builds, because as far as I can tell the settings are exactly the same...@willm132 commented on GitHub (Jun 14, 2021):
My header search path contains "${PODS_CONFIGURATION_BUILD_DIR}/libxlsxwriter/xlsxwriter.framework/Headers".
Is this an issue with Libxlsxwriter or my project?
@jmcnamara commented on GitHub (Jun 14, 2021):
This issue looks similar to this one: https://github.com/CocoaPods/CocoaPods/issues/10354
Maybe try update to the latest, beta, cocoapod framework to see if it fixes the issue, as suggested there.
@willm132 commented on GitHub (Jun 14, 2021):
So how would I go about updating to Cocoapods 1.10.2 beta?
@jmcnamara commented on GitHub (Jun 14, 2021):
You can try this:
As suggested here: https://guides.cocoapods.org/using/getting-started.html
@willm132 commented on GitHub (Jun 14, 2021):
Would this have something to do with it? after running pod update
[!] The
Graf Brothers [Debug]target overrides theOTHER_LDFLAGSbuild setting defined inPods/Target Support Files/Pods-Graf Brothers/Pods-Graf Brothers.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or- Remove the build settings from the target.
[!] The
Graf Brothers [Release]target overrides theOTHER_LDFLAGSbuild setting defined inPods/Target Support Files/Pods-Graf Brothers/Pods-Graf Brothers.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or- Remove the build settings from the target.
[!] The
Graf BrothersUITests [Debug]target overrides theALWAYS_EMBED_SWIFT_STANDARD_LIBRARIESbuild setting defined inPods/Target Support Files/Pods-Graf Brothers-Graf BrothersUITests/Pods-Graf Brothers-Graf BrothersUITests.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or- Remove the build settings from the target.
[!] The
Graf BrothersUITests [Release]target overrides theALWAYS_EMBED_SWIFT_STANDARD_LIBRARIESbuild setting defined inPods/Target Support Files/Pods-Graf Brothers-Graf BrothersUITests/Pods-Graf Brothers-Graf BrothersUITests.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or- Remove the build settings from the target.
@willm132 commented on GitHub (Jun 14, 2021):
@FrankenApps
gem install cocoapods --pre
This installed 1.10.1 which is resulting in the same error
@jmcnamara commented on GitHub (Jun 14, 2021):
In that case you will probably need to install the version in the GitHub repo. I haven't done that before but I presume there is some gem command.
@FrankenApps commented on GitHub (Jun 14, 2021):
I was able to sucessfully archive my demo project for Catalyst with that method on 1.10.1
Its not a pretty solution but it works, and does basically what I mentioned above using a script.
@willm132 commented on GitHub (Jun 14, 2021):
So just throw that in a script file and run it while I archive my project?
@FrankenApps commented on GitHub (Jun 14, 2021):
Yes, and adjust the paths to your local setup.
@jmcnamara commented on GitHub (Jun 15, 2021):
There was an update on the Cocoapods #10224 about how to use Unreleased Cocoapod Features.
Here is a summary of how to get a version of pod with the fix for issue 10224 built in:
Could one of you try that to see if it works.
@jmcnamara commented on GitHub (Jun 15, 2021):
@FrankenApps
Try the https version instead:
@willm132 commented on GitHub (Jun 15, 2021):
Yes that is what I did to get it working.
I installed the new CocoaPods, created an alias in terminal for it, ran the new pod update, and that worked! Thank you so much for all the help
@jmcnamara commented on GitHub (Jun 17, 2021):
I'm going to close this again since the original reported issue should be fixed.