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

[Bug]: iOS - Network (?) problems following an iOS update #7631

Open
1 of 3 tasks
ddx001 opened this issue Aug 26, 2024 · 14 comments
Open
1 of 3 tasks

[Bug]: iOS - Network (?) problems following an iOS update #7631

ddx001 opened this issue Aug 26, 2024 · 14 comments
Labels

Comments

@ddx001
Copy link

ddx001 commented Aug 26, 2024

Capacitor Version

Latest Dependencies:

@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/ios: 6.1.2

Other API Details

npm --version
10.2.4

node --version
v20.11.1

pod --version
1.13.0

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

This has been reported in multiple places and a bug was filed here but was closed as unreproducible.

Related bug report:
#7522

Other reports:
apache/cordova-ios#1440
https://forum.ionicframework.com/t/experiencing-errors-lately/241278
https://stackoverflow.com/questions/78765347/xcode-ios-app-will-not-load-necp-client-action-get-signed-client-id-80-aut
https://stackoverflow.com/questions/78735508/is-there-any-way-to-resolve-host-network-app-id-in-xcode
https://discussions.apple.com/thread/255647899?sortBy=best
https://www.reddit.com/r/OpenCoreLegacyPatcher/comments/1dz7f05/xcode_errors_with_opencore_mac_61_sonoma/

I have experienced the problem with Firebase on iOS so I created a project to reproduce it.

All calls to Firebase stopped working on iOS (I think this follows an update either to iOS on my device or to MacOS. Not sure which is the culprit).

Error messages:

nw_application_id_create_self NECP_CLIENT_ACTION_GET_SIGNED_CLIENT_ID [80: Authentication error]
Failed to resolve host network app id
Warning: -[BETextInput attributedMarkedText] is unimplemented
Invalidating grant <invalid NS/CF object> failed

Expected Behavior

Used to work, should still work.

Project Reproduction

https://github.com/ddx001/ios-problem

Additional Information

macOS version: 14.6.1 (23G93)
iOS version: 17.6.1

See the readme.md file from the reproduction project for setup.

@ddx001 ddx001 added the triage label Aug 26, 2024
@camtera
Copy link

camtera commented Aug 29, 2024

I'm encountering the same issue. The app worked fine two weeks ago and was approved in the App Store. However, when running the same app in Xcode 15.4 on a physical iPhone 13 device today , it displays a blank white page on the iPhone. The log (below) shows the same error reported by dx001. The app runs fine in the Xcode Simulator using 17.4 .

I'm using iOS Version 17.16.1 on an iPhone 13 Pro, which was originally released on August 7th and updated again on August 19th by Apple. For more details on the update.

2024-08-28_21-35-12

Update: I suspected this issue might be related to Firebase. So I removed the libraries and all references to capacitor-community/fcm and capacitor/push-notifications, but the error persists.

@camtera
Copy link

camtera commented Aug 29, 2024

I suspect this issue is related to WKWebView and iOS 17.6, especially since a person with the same problem isn't using Capacitor:
https://forums.developer.apple.com/forums/thread/762223

@dsk8311
Copy link

dsk8311 commented Sep 6, 2024

Same issue but we are not using firebase

@natmet
Copy link

natmet commented Sep 11, 2024

Same here with Capacitor and Firebase.

@drakedeatonuk
Copy link

drakedeatonuk commented Sep 19, 2024

Yes same issue on iOS 17.6 & i've seen it on iOS 18 too.

Can't confirm if it's firebase related.

Adding some logs from crashes in case they're relevant:

crash on iOS 17.6:

0x1160200c0 - [PID=13373] WebProcessProxy::didClose: (web process 0 crash)
0x1160200c0 - [PID=13373] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
0x116068480 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'XPCConnectionTerminationWatchdog' for process with PID=13373, error: (null)
0x10a035418 - [pageProxyID=8, webPageID=9, PID=13373] WebPageProxy::processDidTerminate: (pid 13373), reason=Crash
0x10a035418 - [pageProxyID=8, webPageID=9, PID=13373] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
0x118000a90 - GPUProcessProxy::gpuProcessExited: reason=IdleExit
0x116022340 - [PID=0] WebProcessProxy::gpuProcessExited: reason=IdleExit
Invalidating grant <invalid NS/CF object> failed
Invalidating grant <invalid NS/CF object> failed

crash on iOS 18:

0x1180200c0 - [PID=13446] WebProcessProxy::didClose: (web process 0 crash)
0x1180200c0 - [PID=13446] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
Invalidating grant <invalid NS/CF object> failed
0x10a845018 - [pageProxyID=8, webPageID=9, PID=13446] WebPageProxy::processDidTerminate: (pid 13446), reason=Crash
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))" UserInfo={NSLocalizedFailureReason=((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))}>
0x118070300 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'XPCConnectionTerminationWatchdog' for process with PID=13446, error: (null)
0x10a845018 - [pageProxyID=8, webPageID=9, PID=13446] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
0x119003440 - GPUProcessProxy::gpuProcessExited: reason=IdleExit
0x118022340 - [PID=0] WebProcessProxy::gpuProcessExited: reason=IdleExit
Invalidating grant <invalid NS/CF object> failed
Invalidating grant <invalid NS/CF object> failed

@RKDeveloper12
Copy link

RKDeveloper12 commented Oct 2, 2024

Same issue, XCode 15.4. Using ionic capacitor vue firebase and also a Cordova purchase plugin suggested in ionic docs. Calls to firebase work, for example, I have a Component.vue where firebase services are used for anonymous authentication and they return a valid response. It's just that I have a blank white page (black on emulator)

@RKDeveloper12
Copy link

Creating a new project via ionic start and then dragging my src folder from previous project to new project ended up working. I had a vue capacitor ionic project with a lot of firebase services.

@brendanowens
Copy link

I am having the same issue as @drakedeatonuk on iOS 18.0.1 and Capacitor

0x111020680 - [PID=21640] WebProcessProxy::didClose: (web process 0 crash)
0x111020680 - [PID=21640] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))" UserInfo={NSLocalizedFailureReason=((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))}>
0x1110346c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'XPCConnectionTerminationWatchdog' for process with PID=21640, error: (null)
0x128244c18 - [pageProxyID=10, webPageID=11, PID=21640] WebPageProxy::processDidTerminate: (pid 21640), reason=Crash

@treighmawaka
Copy link

Creating a new project via ionic start and then dragging my src folder from previous project to new project ended up working. I had a vue capacitor ionic project with a lot of firebase services.

Facing a similar issue with a vue3/ionic8/capacitor6 project. Curious, when you created a new project and ported your files over, did you also copy the ios and android folders?

@RKDeveloper12
Copy link

RKDeveloper12 commented Oct 29, 2024 via email

@treighmawaka
Copy link

No, I ended up doing npx cap add ios/android again. Built the dist/public again, synced it, and it worked.

On Tue, 29. Oct 2024 at 15:47, Treigh Mawaka @.> wrote: Creating a new project via ionic start and then dragging my src folder from previous project to new project ended up working. I had a vue capacitor ionic project with a lot of firebase services. Facing a similar issue with a vue3/ionic8/capacitor6 project. Curious, when you created a new project and ported your files over, did you also copy the ios and android folders? — Reply to this email directly, view it on GitHub <#7631 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNVOX7G3RENVYUKUEZMRBLZ56GXRAVCNFSM6AAAAABNEYS746VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBUGI4TANJZGI . You are receiving this because you commented.Message ID: @.>

Got it. Thanks!

@ChaseGuru
Copy link

ChaseGuru commented Nov 7, 2024

For me, this was actually just this:
#6663

Which I wish I noticed before I searched for this thread.... because I created a new ionic project then copied it over my project and slow reverted files till I could find which change made the app "stop" loading. I didn't write the app in the first place and don't know why the server code was added.

But removing:

  server: {
    cleartext: true,
    hostname: '0.0.0.0',
  },

from any relelvant capacitor.config.ts fixed it.

@ChaseGuru
Copy link

Maybe it was a slightly different issue than #6663? Because I wasn't hard coding localhost, and my issue was specific to production builds on ios 18. The same build worked fine on an ios 17.4 device.

But whatever the case, removing that fixed it.

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

No branches or pull requests

12 participants