-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Wrong warning is emitted about the dSYMs architectures not matching when using XCFrameworks #10076
Comments
Thanks for the great report! |
We can fix for 1.10.0 |
@radazzouz fixed here #10114 I tried in your sample and for DEBUG builds I did not get the warning but for RELEASE I did which I think is correct. |
@radazzouz if you want a take a look at the PR let me know if the fix appears correct. |
Thank you so much for the ping @dnkoutso! 👍 I just commented on the PR with my findings https://github.com/CocoaPods/CocoaPods/pull/10114/files#r498993350 |
@radazzouz I know this is a relatively old issue but I tried it again and it seems I got no warning. I am not sure however if its fixed by another PR in cocoapods or because the podspec was updated. I am for now removing it from 1.11.0 |
Thanks for the followup, @dnkoutso! I just rested this in this slightly modified version of the sample project above and I can no longer reproduce it. My guess is that this issue has been fixed by the changes in #10122 and the new XCFramework format that PSPDFKit uses. See https://pspdfkit.com/blog/2021/advances-in-xcframeworks/#cocoapods |
awesome. thanks for confirming @radazzouz ! going to close for now we can re-open if something shows up or file a new issue. |
Report
What did you do?
Minimal-CocoaPods
.pod install
Minimal
scheme on an iOS 14 simulator.What did you expect to happen?
There should be no warnings.
What happened instead?
CocoaPods emits warnings about the dSYMs architectures not matching when using XCFrameworks:
warning: [CP] Vendored binary '/Users/radazzouz/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PSPDFKit.build/DerivedSources/PSPDFKit.framework.ios-arm64.dSYM/Contents/Resources/DWARF/PSPDFKit' contains architectures (arm64) none of which match the current build architectures (x86_64).
This is an invalid warning because
PSPDFKit.framework.ios-arm64.dSYM
's binary is non-fat and it should not contain anx86_64
architecture.lipo -info ~/Downloads/Minimal-CocoaPods/Pods/PSPDFKit/PSPDFKit.dSYMs/PSPDFKit.framework.ios-arm64.dSYM/Contents/Resources/DWARF/PSPDFKit Non-fat file: /Users/radazzouz/Downloads/Minimal-CocoaPods/Pods/PSPDFKit/PSPDFKit.dSYMs/PSPDFKit.framework.ios-arm64.dSYM/Contents/Resources/DWARF/PSPDFKit is architecture: arm64
And because, we're building in debug mode (Build for Active Architectures Only is enabled) on a simulator and not on an iOS devices.
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
Minimal-CocoaPods.zip
Additional Information:
The text was updated successfully, but these errors were encountered: