Open aljux opened 1 month ago
Saw that the version 2.2.11 uses the swift 6 toolchain, so switched to that version but still get some errors:
(lldb) po scrollView
Could not import Swift modules for translation unit: failed to get module "GiphyUISDK" from AST context:
error: .../Contents/Resources/Swift/aarch64/GiphyUISDK.swiftinterface:10:19: underlying Objective-C module 'GiphyUISDK' not found
@_exported import GiphyUISDK
^
error: .../Contents/Resources/Swift/aarch64/GiphyUISDK.swiftinterface:1483:73: initializer does not override a designated initializer from its superclass
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(image: UIKit.UIImage?)
~~~~~~~~ ^
error: .../Contents/Resources/Swift/aarch64/GiphyUISDK.swiftinterface:1485:73: initializer does not override a designated initializer from its superclass
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(image: UIKit.UIImage?, highlightedImage: UIKit.UIImage?)
~~~~~~~~ ^
error: .../Contents/Resources/Swift/aarch64/GiphyUISDK.swiftinterface:1486:73: initializer does not override a designated initializer from its superclass
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(frame: CoreFoundation.CGRect)
~~~~~~~~ ^
error: .../Contents/Resources/Swift/aarch64/GiphyUISDK.swiftinterface:1469:133: no type named 'GiphyYYAnimatedImageView' in module 'GiphyUISDK'
@objc @_inheritsConvenienceInitializers @objcMembers @_Concurrency.MainActor @preconcurrency public class GPHMediaView : GiphyUISDK.GiphyYYAnimatedImageView {
^
error: .../Contents/Resources/Swift/aarch64/GiphyUISDK.swiftinterface:1744:107: no type named 'GiphyYYImage' in module 'GiphyUISDK'
public func downloadAsset(_ urlString: Swift.String, key: Swift.String? = nil, completion: ((GiphyUISDK.GiphyYYImage?, (any Swift.Error)?) -> Swift.Void)?) -> Foundation.URLSessionDataTask?
^
error: .../Contents/Resources/Swift/aarch64/GiphyUISDK.swiftinterface:2:1: failed to build module 'GiphyUISDK' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
hey @aljux thanks for flagging this. by any chance, can you advise on a possible change we can make on our end that might address this issue?
🐛 Bug Report
When including the giphy SDK in a project, it's no longer possible to use the lldb to print any object description, which makes debugging rather difficult. Tested to include the SDK both via cocoapods and SPM.
To Reproduce
(Write your steps here:)
Expected behavior
We should be able to use the lldb as normal
(Write what you thought would happen.)
Actual Behavior
error message in description is shown
Your Environment