google / google/j2objc

Https support is unavailable on swift

Open
#758 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6k
Forks
999
Avg merge
19h 20m
Merged PRs (30d)
14

Description

```
SwiftModulesTests.swift:48: error: -[SwiftModulesTests.SwiftModulesTests testExample] : failed: caught "ComGoogleJ2objcLibraryNotLinkedError", "Https support is unavailable. Fix this by:
1) If linking with -ObjC, add -ljre_ssl to the link flags.
2) If linking without -ObjC, call JavaxNetSslHttpsURLConnection_class_() to create a compile-time dependency."
```

I'm currently using the framework and already added this:

``` java
private static final Class unused0 = HttpsURLConnection.class;
private static final Class unused1 = HttpURLConnection.class;
```

I'm assuming that everything is baked into the JRE.framework.
It's still throwing the same error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.