[GH-ISSUE #121] [Bug] Atlantis on iOS 16 could not connect to Proxyman macOS app due to "Connection reset by peer" #74

Open
opened 2026-03-03 19:11:34 +03:00 by kerem · 4 comments
Owner

Originally created by @NghiaTranUIT on GitHub (Nov 19, 2022).
Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/121

Originally assigned to: @NghiaTranUIT on GitHub.

Description

If we use Atlantis on an iOS 16 Physical device, most of the time the Atlantis service cannot successfully connect to Proxyman macOS app.

Always get the following error:

[Atlantis] ❌ Connection to Proxyman app is failed, error=POSIXErrorCode(rawValue: 54): Connection reset by peer

Reason: We suspect that NSNetServiceBrowser is deprecated, so it might not work on iOS 16. NSNetServiceBrowser is a legacy framework for Bonjour Connection.

To workaround, use the iOS 16 Simulator.

Steps to Reproduce

  1. Use iOS 16 physical device and integrate Atlantis framework
  2. Start the app

Current Behavior

  1. Observe that the connection is failed

Expected Behavior

  • The connection should work

Environment

  • App version: Proxyman 3.13.0 + Atlantis 1.19.0
  • macOS version: macOS Monterey
Originally created by @NghiaTranUIT on GitHub (Nov 19, 2022). Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/121 Originally assigned to: @NghiaTranUIT on GitHub. ## Description If we use Atlantis on an iOS 16 Physical device, most of the time the Atlantis service cannot successfully connect to Proxyman macOS app. Always get the following error: ``` [Atlantis] ❌ Connection to Proxyman app is failed, error=POSIXErrorCode(rawValue: 54): Connection reset by peer ``` Reason: We suspect that [NSNetServiceBrowser](https://developer.apple.com/documentation/foundation/netservicebrowser) is deprecated, so it might not work on iOS 16. NSNetServiceBrowser is a legacy framework for Bonjour Connection. To workaround, use the iOS 16 Simulator. ## Steps to Reproduce 1. Use iOS 16 physical device and integrate Atlantis framework 2. Start the app ## Current Behavior 3. Observe that the connection is failed ❌ ## Expected Behavior - The connection should work ## Environment - App version: Proxyman 3.13.0 + Atlantis 1.19.0 - macOS version: macOS Monterey
Author
Owner
<!-- gh-comment-id:1320838439 --> @NghiaTranUIT commented on GitHub (Nov 19, 2022): Fixed: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_3.13.0_Fix_Atlantis_connection_is_failed.dmg
Author
Owner

@smaky commented on GitHub (Jan 2, 2024):

Still this bug exist in iOS 17(simulator and real device).

Version of Atlantis: 1.23.0
Version of Proxyman: 4.15.0

Step to reproduce:
Run app with atlantis on simulator (iOS 17) and stop from Xcode, then run another app instance on another simulator (diferent device type but the same iOS) and also stop, then come back to previous (from the beginning) run app instance.

I am not able to connect to Proxyman. I am getting error:

---------- 🧊 Atlantis is running (version 1.23.0)
---------- Github: https://github.com/ProxymanApp/atlantis
[Atlantis] Looking for Proxyman app in the network...
[Atlantis] 🔎 Found Proxyman at HostName = host1.local.
[Atlantis] ✅ Connect to host1.local.
[Atlantis] Connection established
[Atlantis] Flush 7 items
[Atlantis] ❌ Connection to Proxyman app is failed, error=POSIXErrorCode(rawValue: 54): Connection reset by peer
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
<!-- gh-comment-id:1873874658 --> @smaky commented on GitHub (Jan 2, 2024): Still this bug exist in iOS 17(simulator and real device). Version of Atlantis: 1.23.0 Version of Proxyman: 4.15.0 Step to reproduce: Run app with atlantis on simulator (iOS 17) and stop from Xcode, then run another app instance on another simulator (diferent device type but the same iOS) and also stop, then come back to previous (from the beginning) run app instance. I am not able to connect to Proxyman. I am getting error: ``` ---------- 🧊 Atlantis is running (version 1.23.0) ---------- Github: https://github.com/ProxymanApp/atlantis [Atlantis] Looking for Proxyman app in the network... [Atlantis] 🔎 Found Proxyman at HostName = host1.local. [Atlantis] ✅ Connect to host1.local. [Atlantis] Connection established [Atlantis] Flush 7 items [Atlantis] ❌ Connection to Proxyman app is failed, error=POSIXErrorCode(rawValue: 54): Connection reset by peer [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected [Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected ```
Author
Owner

@NghiaTranUIT commented on GitHub (Jan 8, 2024):

@smaky I'm working on this issue: May I ask:

Run app with atlantis on simulator (iOS 17) and stop from Xcode, then run another app instance on another simulator (diferent device type but the same iOS) and also stop, then come back to previous (from the beginning) run app instance.

Does it happen if we only open 1 app 🤔 ?

For example:

  1. Launch your app with iOS Simulator
  2. Verify if Atlantis can discover and connect to Proxyman.

I've tested and it works fine on iOS 17.2.

Screenshot 2024-01-08 at 10 45 57
<!-- gh-comment-id:1880346103 --> @NghiaTranUIT commented on GitHub (Jan 8, 2024): @smaky I'm working on this issue: May I ask: > Run app with atlantis on simulator (iOS 17) and stop from Xcode, then run another app instance on another simulator (diferent device type but the same iOS) and also stop, then come back to previous (from the beginning) run app instance. Does it happen if we only open 1 app 🤔 ? For example: 1. Launch your app with iOS Simulator 2. Verify if Atlantis can discover and connect to Proxyman. ----------------- I've tested and it works fine on iOS 17.2. <img width="1728" alt="Screenshot 2024-01-08 at 10 45 57" src="https://github.com/ProxymanApp/atlantis/assets/5878421/eb0c0ad0-df79-4f4a-b3e3-4619cc1632d5">
Author
Owner

@NghiaTranUIT commented on GitHub (Jan 8, 2024):

@smaky I tried to follow your instructions but couldn't reproduce it

https://github.com/ProxymanApp/atlantis/assets/5878421/2cf3d23f-e115-4f44-8eed-485fd0dff45c

<!-- gh-comment-id:1880352934 --> @NghiaTranUIT commented on GitHub (Jan 8, 2024): @smaky I tried to follow your instructions but couldn't reproduce it https://github.com/ProxymanApp/atlantis/assets/5878421/2cf3d23f-e115-4f44-8eed-485fd0dff45c
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/atlantis#74
No description provided.