Closed BlixLT closed 2 years ago
Hi @BlixLT , thank you for reaching out to us!
I'll mark this as a feature request.
Meanwhile, as a workaround you can try using the following flags in your swift package for a specific target:
swiftSettings: [
.unsafeFlags(["-suppress-warnings"]),
])
@DmitriyKirakosyan How can I set these flags when including PLCrashReporter via Swift Package Manager?
Hi @futuretap , sorry for the confusion, the workaround only helps if you have a swift package project.
If you enable treating warning as errors in your project and this issue is blocker for you, please integrate PLCrashReporter as xcframework or via CocoaPods until the issue is fixed.
All these warnings are from protobuf-c library. I'm going to update it to latest stable 1.4.0 version (#241), but it still is not fixed there. Even if we DO copy these files manually to our repo (as SwiftPM workaround), we're not going to change it to avoid conflicts during future updates.
This is not completed. The warning still occurs. I understand that protobuf-c is to blame but I'm not sure if they're even aware of the issue.
Description
We are trying to get rid of all warnings in our project and noticed some in plcrashreporter swift package. Hopefully you will be able to fix them in the future. Thanks.
Repro Steps
Please list the steps used to reproduce your issue.
protobuf-c.c:447:27: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int')
appearDetails
Which SDK version are you using? plcrashreport version 1.10.1
Which OS version did you experience the issue on? iOS 15.1 on Device/Simulator
Which CocoaPods/Carthage/Xcode version are you using? Xcode 13.2.1
What device version did you see this error on? Were you using an emulator or a physical device? iPhone X (device), iPhone 13 Pro Max (simulator)
What language are you using?
What third party libraries are you using? None. It can be reproduced simply by building PLCrashReporter's Swift Package project