-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add support for dSYMs when using XCFrameworks in CocoaPods 1.9.0.beta.x #9530
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
Comments
@amorde didnt we add dSYM support for xcframeworks in 1.9.x? |
Hi @radazzouz 👋 dSYM support was added by including a folder in the format |
Thanks for the prompt response, @amorde! 👍 I just tested with the dSYM folders named I also updated the instructions and the sample project's Podspec from the main comment so you can conveniently test it on your side. |
BTW, when using the manual integration (see the Manual-Integration-dSYM-Support.zip sample project), the dSYMs can be found in the archive on both iOS and Mac Catalyst:
|
Hmm ok will need some time to look into this, thanks for the detailed report! |
The names of the dSYMs are messing with the logic of finding the binary inside the This is something we can fix, hopefully I'll have a PR up soon in time for 1.9. Thanks for the report! |
@radazzouz I've pushed up a WIP fix for this on the |
Thanks @amorde! 👍 I just pulled your branch and it did not work for me. Did you use the same sample project and the updated integration steps from the main comment? |
Yes I did, thanks so much for the sample + detailed instructions! What happened when you tried my branch? did it you see "Selected dsym [path]" in the build output? |
Everything worked except for the dSYMs.Just like on 1.9.0.beta.3. BTW, I used these instructions to build locally.
No. Unfortunately, I did not. |
Looks like I had some local changes that didn't get included in that commit - I pushed again, please give it another try when you can |
Thank you so much, @amorde! I confirm that it now works on both iOS and Mac Catalyst! 🎉
|
Will ship with final 1.9.0 release. |
CocoaPods 1.9.3.beta.x added support for XCFrameworks (see #9148 and #9334). However, dSYMs are not currently supported.
At PSPDFKit, we currently bundle the CocoaPods artifact as the old fat
.frameworks
, and we plan on distributing XCFrameworks as soon as CocoaPods supports dSYMs in its latest stable version, asdSYM
support is crucial for our customers.How the Manual Integration with dSYM supports works:
You can manually integrate XCFrameworks into your project and add the dSYMs using an
.xcfilelist
, as described in the second step of this guide here: https://pspdfkit.com/guides/ios/current/getting-started/integrating-pspdfkit/#integrating-the-xcframeworkHow to Test:
Create the Local PSPDFKit CocoaPods Artifacts:
PSPDFKit.xcframework
,PSPDFKitUI.xcframework
,PSPDFKit-dSYMs
, andPSPDFKitUI-dSYMs
in a writable location.strip-bitcode.sh
andstrip-framework.sh
fromPSPDFKit.xcframework/*/PSPDFKit.framework
:PSPDFKit-dSYMs
andPSPDFKitUI-dSYMs
folderstoPSPDFKit.dSYMs
, andPSPDFKitUI.dSYMs
respectively..zip
file) by compressingPSPDFKit.xcframework
,PSPDFKitUI.xcframework
,PSPDFKit.dSYMs
, andPSPDFKitUI.dSYMs
intoPSPDFKit.zip
.Archive.zip
toPSPDFKit.zip
.Integrate PSPDFKit using CocoaPods Beta in a Sample Project:
sudo gem install cocoapods --pre
. In my tests, I used 1.9.3.beta.3 in my testscd
into the project directory:cd CocoaPods-dSYM-Support/SwiftExample
PSPDFKit.zip
) in the root folder (CocoaPods-dSYM-Support
).pod install
.open SwiftExample/SwiftExample.xcworkspace
.Proposed Outcome:
.frameworks
.The text was updated successfully, but these errors were encountered: