sumup / sumup-ios-sdk

Other
46 stars 25 forks source link

SDSStyleSheet console logging on Xcode 13 beta #109

Closed sammcewan closed 11 months ago

sammcewan commented 3 years ago

Very early heads up that the SDK is throwing this log to our console when running Xcode 13 beta / iOS 15.

+[SDSStyleSheet styleSheetFromURL:] (line 179): Could not load style sheet data from URL: (null)
sammcewan commented 3 years ago

This is now in RC and the issue remains.

ralfebert commented 3 years ago

Also seeing these errors occuring in a SwiftUI app nowhere near the places where the Sumup SDK is used. Just switching tabs in a TabView triggers around 10 such log warnings and slows down the app significantly. This is not triggered by application code:

Screenshot 2021-10-14 at 22 55 02
ralfebert commented 3 years ago

Also happening with the latest version 4.1.1 of the SDK.

vx8 commented 3 years ago

Can we have an update on this? We are also facing the same issue. We have the console log flooded by this message.

Thanks

breitung commented 2 years ago

Having the same problem.

Ceroce commented 2 years ago

Still not fixed in release 4.2 of the SDK 😤

eratical commented 2 years ago

Same problem, please fix this

ls-philippe-casgrain commented 2 years ago

Also getting this issue, and it's worse with SwiftUI views for some reason.

ralfebert commented 2 years ago

This is really annoying and causes performance problems in general even if the SDK is not used; it seems the SumUpSDK adds a method colorForStyle: in UIColor with an extension and since the latest iOS release this seems to be used even outside of the SumUp views...

I found a workaround to make at least the log messages go away, you can initialize the SDK with an empty SDK key, this seems to set up the style sheet it is complaining about - unfortunately you can set the API key only once...

SumUpSDK.setup(withAPIKey: apiKey ?? "")
cwimberger commented 1 year ago

Never thought that this would be necessary, but enough is enough. Here is a gist to silence this log message while we wait for a fix:

https://gist.github.com/cwimberger/9089354f12e7f60fea201a65e99a86fa