Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkInjector+URLConnection.swift:20:99: error #137

Open
cdoky opened this issue Oct 27, 2023 · 5 comments
Open

NetworkInjector+URLConnection.swift:20:99: error #137

cdoky opened this issue Oct 27, 2023 · 5 comments

Comments

@cdoky
Copy link

cdoky commented Oct 27, 2023

/Pods/atlantis-proxyman/Sources/NetworkInjector+URLConnection.swift:20:99: error: cannot force unwrap value of non-optional type '(any NSURLConnectionDataDelegate) -> ((NSURLConnection, URLResponse) -> Void)?'
        let selector : Selector = #selector((NSURLConnectionDataDelegate.connection(_:didReceive:)!)
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                                                                                                  
/Pods/atlantis-proxyman/Sources/NetworkInjector+URLConnection.swift:55:99: error: cannot force unwrap value of non-optional type '(any NSURLConnectionDataDelegate) -> ((NSURLConnection, URLResponse) -> Void)?'
        let selector : Selector = #selector((NSURLConnectionDataDelegate.connection(_:didReceive:)!)
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Xcode: Version 15.0 (15A240d)
macOS: 13.5.2

@NghiaTranUIT
Copy link
Member

Hi @cdoky what iOS version you're using? and is it Simulator or physical device?

@cdoky
Copy link
Author

cdoky commented Oct 27, 2023

Hi @cdoky what iOS version you're using? and is it Simulator or physical device?

iPhone 15 Pro Max Simulator

and the main project is Objective-c...

@mahmoudElfeel67
Copy link

i am also have the same exact issue as @cdoky

@NghiaTranUIT
Copy link
Member

@mahmoudElfeel67 @cdoky let's update Atlantis to the latest version v1.22.0. It will fix your issue.

Your library is really old v1.17.0 (Released on 2022) because we completely removed URLConnection class 👍


I tested again with Xcode 15.0.1, iOS 17.0, Atlantis v1.22.0 and It works as intended 👍

CleanShot 2023-10-29 at 08 32 05@2x

@cdoky
Copy link
Author

cdoky commented Oct 29, 2023

very said

Specs satisfying the atlantis-proxyman (~> 1.22.0) dependency were found, but they required a higher minimum deployment target.

our project is support iOS11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants