Zendesk Support SDK iOS 13 statusBarOrientation deprecation



Gepostet 02. Nov. 2021

Hello, I am upgrading our app to target iOS 13, but it looks like the Zendesk Support SDK is using a deprecated API statusBarOrientation. I updated the Zendesk Support SDK and it looks like it's still there. Will this be fixed?

https://developer.zendesk.com/documentation/classic-web-widget-sdks/support-sdk/ios/nutshell/


3

5

5 Kommentare

This causing the build to fail. Not able to integrate the zendesk sdk and use the product. Can we please know what is the solution fot this

0


Mick, to follow up on this, we are also hitting the same `statusBarOrientation` issue.

The issue arises under these two conditions:

  1. The minimum deployment target is Xcode 13.0 or higher.
  2. The project contains Obj-C code (this one may be incidental).

Under those conditions, the compiler will throw an error during the SwiftPM build phase and it fails the entire build.

A fix for this in the Zendesk framework would look something like the following:

UIInterfaceOrientation orientation;
if (@available(iOS 13.0, *)) {
UIWindowScene *windowScene = [[[[UIApplication sharedApplication] windows] firstObject] windowScene]; if (windowScene != nil) {
    orientation = windowScene.interfaceOrientation;
} else {
       orientation = UIInterfaceOrientationUnknown;

}
else {
orientation = [UIApplication sharedApplication].statusBarOrientation;
}

1


Hi folks, 

Thank you for raising this. We're going to prioritize work to remove this component from the Support SDK as soon as possible. We don't have a specific release date yet, but this is a priority. I'm not sure how this is blocking a move to Xcode 13 as all deprecated Instance Properties raise warnings in Xcode regardless of the Xcode version, unless I'm missing something here? Please let us know if you are aware of something Xcode 13 related.

0


Would also love to see these warnings removed, as we like to operate at as few warnings as possible.

Plus if it's depreciated in iOS 13 that means it'll be removed shortly, possible with iOS 16 betas this June.

0


Hello,

 

I am encountering the same issue and I am hoping that it can be fixed soon. This is the only issue stopping us from moving to iOS/iPadOS 13. We know we could disable treating warning as errors but that is not an option for us.

 

The culprit is `ZDKUIUtil`. Hopefully can be fixed sooner rather than later.

It should be noted that we're currently unable to move to Xcode 13 and we're still using on Xcode 12.5.1

Best wishes,

Rod

0


Melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post