Skip to content

Version 2.0.0 incompatible with iOS 15 & 16 #1398

@jankuss

Description

@jankuss

After upgrading to version 2.0.0 of cupertino_http, we noticed the following error on our test devices running on iOS 15 and iOS 16.

Code:

void main() async {
  final client = CupertinoClient.defaultSessionConfiguration();
  final response = await client.get(Uri.parse("https://google.com"));
}

This will fail with the following exception:

      Exception: Failed to load method of Objective-C protocol
      #0      getProtocolMethodSignature (package:objective_c/src/internal.dart:70:5)
      #1      NSURLSessionDataDelegate.URLSession_didCreateTask_ (package:cupertino_http/src/native_cupertino_bindings.dart:66561:10)
      #2      NSURLSessionDataDelegate.URLSession_didCreateTask_ (package:cupertino_http/src/native_cupertino_bindings.dart)
      #3      NSURLSessionDataDelegate.addToBuilderAsListener (package:cupertino_http/src/native_cupertino_bindings.dart:66338:30)
      #4      URLSession.delegate (package:cupertino_http/src/cupertino_api.dart:853:34)
      #5      new URLSession.sessionWithConfiguration (package:cupertino_http/src/cupertino_api.dart:1066:13)
      #6      new CupertinoClient.fromSessionConfiguration (package:cupertino_http/src/cupertino_client.dart:240:32)
      #7      new CupertinoClient.defaultSessionConfiguration (package:cupertino_http/src/cupertino_client.dart:234:28)

Is this an intended breaking change? I could not find any mention of this in the release notes. As iOS 15 & 16 are still in use by many phones, I believe they should still be supported: https://iosref.com/ios-usage

We were able to resolve this issue by staying on 1.5.1 of cupertino_http. Will support of iOS 15 & 16 be dropped with future cupertino_http Versions >=2.0.0?

Metadata

Metadata

Assignees

Labels

package:cupertino_httpIssues related to package:cupertino_httptype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions