New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac Catalyst issue with Cocoapods #337
Comments
The is just a standard link error. Make such that |
@jmcnamara I am using CocoaPods with Xcode |
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? |
I use Intel iMac and M1 MacBook Pro |
Do you see the same issue on both systems? |
I have not used the M1 since adding xlsxwriter. I am currently on the iMac. |
Ok. Can you try the sample app linked above and see if it works. |
Yes, the sample did compile and work on Mac Catalyst. What do I need to do to get my project working? |
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. |
@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 |
@FrankenApps could you help with this issue. |
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... |
Like I said it runs fine on the machine but will not archive |
Any updated on this? |
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 yes I actually did try that but no luck still |
Does it work when generating a signed .ipa? As stated above there is no real way to reproduce this for me... |
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 |
Aha, now I understand. But this only happens when archiving for mac. You can archive it just fine for iOS. |
@FrankenApps Yes, my project supports Mac Catalyst. |
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' |
Is this something I can manually add on my end to resolve this? |
I don't know. Might have something to do with |
My header search path contains "${PODS_CONFIGURATION_BUILD_DIR}/libxlsxwriter/xlsxwriter.framework/Headers". Is this an issue with Libxlsxwriter or my project? |
This issue looks similar to this one: CocoaPods/CocoaPods#10354 Maybe try update to the latest, beta, cocoapod framework to see if it fixes the issue, as suggested there. |
So how would I go about updating to Cocoapods 1.10.2 beta? |
You can try this:
As suggested here: https://guides.cocoapods.org/using/getting-started.html |
Would this have something to do with it? after running pod update [!] The [!] The [!] The [!] The |
gem install cocoapods --pre This installed 1.10.1 which is resulting in the same error |
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. |
I was able to sucessfully archive my demo project for Catalyst with that method on 1.10.1 |
So just throw that in a script file and run it while I archive my project? |
Yes, and adjust the paths to your local setup. |
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: # This took a couple of goes:
$ bundle update --bundler
$ cd /tmp
$ git clone git@github.com:CocoaPods/CocoaPods.git
$ cd CocoaPods/
$ git checkout 1-10-stable
$ bundle install
$ echo $(pwd)"/bin/pod"
# So now you should have a patched version of pod. For me this was:
$ echo $(pwd)"/bin/pod"
/tmp/CocoaPods/bin/pod
# Then use this version of pod to install libxlsxwriter:
/tmp/CocoaPods/bin/pod install Could one of you try that to see if it works. |
Try the https version instead:
|
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 |
I'm going to close this again since the original reported issue should be fixed. |
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)
The text was updated successfully, but these errors were encountered: