ProxymanApp / atlantis

Capture HTTP/HTTPS, and Websocket from iOS app without proxy.
https://proxyman.io
Apache License 2.0
1.25k stars 93 forks source link

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

Open cdoky opened 10 months ago

cdoky commented 10 months ago
/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 commented 10 months ago

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

cdoky commented 10 months ago

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 commented 10 months ago

i am also have the same exact issue as @cdoky

NghiaTranUIT commented 10 months ago

@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 commented 10 months ago

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

pengshengsongcode commented 2 months ago

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

same question

NghiaTranUIT commented 2 months ago

It's too old to support iOS 11 since it's 17 (6 years old).

May I ask:

pengshengsongcode commented 2 months ago

1、macOS 13.5.2 2、Xcode 15.2 our project is support iOS11+ 🙁

NghiaTranUIT commented 2 months ago

Tried to support iOS 11, but it's deprecated but Swift Package Manager (https://developer.apple.com/documentation/packagedescription/supportedplatform/iosversion/v11)

I can exclude it because it's too complicated : /