当我使用 Xcode 成功构建应用程序时, 模拟器上的应用程序无法连接到网络“没有互联网访问权限”, 即使模拟器内的浏览器可以连接并访问互联网。
我已经尝试过了 iOS 模拟器无法访问互联网 iPhone模拟器无法连接互联网 似乎没有什么对我有用。
请问有什么帮助吗?
macOS Big Sur 版本 11.2.3
Xcode 版本 12.5 (961.1) 模拟器套件 609 核心模拟器 757.5
我正在使用 React Native v0.64 获取 API 响应为
[Error: Network Error]
日志
[javascript] 'ApiClient', 'GET', '/api/v1/explores/image_feed'
[Adjust]w: SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing
[Adjust]d: Delegate implements adjustDeeplinkResponse:
[Adjust]e: Adjust already initialized
[Adjust]v: Foreground timer is already started
[Adjust]v: Subsession start
[Adjust]v: Started subsession 2 of session 1
[Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:2 ask:0 sl:62.2 ts:59.9 la:1621426622.1 dt:(null) gdprf:0 dtps:0 att:0
[javascript] Default values set.
[javascript] 'deeplink handling event', { url: null }
7.11.0 - [Firebase/RemoteConfig][I-RCN000026] RCN Fetch failure. Response http error code: 403
[javascript] [CodePush] App is up to date.
[javascript] Possible Unhandled Promise Rejection (id: 2):
Error: [remoteConfig/unknown] Internal Error. Status code: 403
NativeFirebaseError: [remoteConfig/unknown] Internal Error. Status code: 403
[javascript] 'ApiClient', 'GET', '/api/v1/link_groups'
[javascript] 'Be aware that changing the visibility of header in modal on iOS will result in resetting the state of the screen.', '\n at NativeStackView
screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
[javascript] 'ApiClient', 'POST', '/api/v1/users/sign_in'
[Adjust]v: Foreground timer fired
[Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:2 ask:0 sl:120.8 ts:118.5 la:1621426680.7 dt:(null) gdprf:0 dtps:0 att:0
[Adjust]v: Foreground timer fired
[Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:2 ask:0 sl:180.8 ts:178.6 la:1621426740.7 dt:(null) gdprf:0 dtps:0 att:0
[connection] nw_socket_handle_socket_event [C24.1:3] Socket SO_ERROR [54: Connection reset by peer]
[connection] nw_read_request_report [C24] Receive failed with error "Connection reset by peer"
[Adjust]v: Foreground timer fired
[Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:2 ask:0 sl:240.6 ts:238.3 la:1621426800.5 dt:(null) gdprf:0 dtps:0 att:0
我也遇到同样的问题。我什至尝试安装rosetta,但这也没有解决问题。
请求被服务委托 (SBMainWorkspace) 拒绝。