Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

bug: XPC Error: Error Domain=NSCocoaErrorDomain Code=4099 #31

Closed
Syiana opened this issue Oct 9, 2023 · 7 comments
Closed

bug: XPC Error: Error Domain=NSCocoaErrorDomain Code=4099 #31

Syiana opened this issue Oct 9, 2023 · 7 comments
Labels
bug/fix Something isn't working needs: triage platform: ios iOS platform

Comments

@Syiana
Copy link

Syiana commented Oct 9, 2023

Plugin version:
[0.3.2]

Platform(s):
IOS

Hello,

since the last XCode update I get the following error message when I run: Nfc.isSupported();

45[NFCHardwareManager areFeaturesSupported:outError:]:166 XPC Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.nfcd.service.corenfc was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.nfcd.service.corenfc was invalidated: failed at lookup with error 159 - Sandbox restriction.}

I checked my Provisioning Profile and it contains NFC Tag Reading also my Privacy - NFC Scan Usage Description is filled in the PInfo file.

Any idea what the issue could be?

Thanks for your help!

Capacitor doctor:

[success] iOS looking great! 👌
@robingenz
Copy link
Member

Thank you for your request. I will try to reproduce your issue.

@robingenz robingenz added bug/fix Something isn't working platform: ios iOS platform labels Oct 11, 2023
@robingenz
Copy link
Member

Does this error occur in the simulator or on a real device?

@Syiana
Copy link
Author

Syiana commented Oct 11, 2023

Does this error occur in the simulator or on a real device?

Hello, thanks for your fast reply! It happens on a real device (Iphone 11pro and Iphone 15pro)

@robingenz
Copy link
Member

I cannot reproduce the issue. I have updated both XCode and iOS to the latest version but still get no error:

⚡️  To Native ->  Nfc isSupported 44585250
⚡️  TO JS {"isSupported":true}

Can you reproduce this issue with the Capacitor NFC demo?

@etikhonov
Copy link

etikhonov commented Oct 18, 2023

I faced the same issue. README first step was missed 🤦

Ensure Near Field Communication Tag Reading capabilities have been enabled in your application in Xcode. See Add a capability to a target for more information.

@Syiana Did You check it?

@Syiana
Copy link
Author

Syiana commented Oct 19, 2023

@robingenz in the demo the plugin version 5.0.2 and 5.0.1 is working, so it has something to do with my app.

@etikhonov I can't find NFC in the "add capabilities" in Xcode, I got it just in my profile:
image

It worked before the new Mac OS and Xcode update, so it is a little bit strange for me.

@Syiana
Copy link
Author

Syiana commented Oct 19, 2023

Okay I found it! I just pressed the wrong "+" button in XCode.. it is working now :)

Thanks for your help!

@Syiana Syiana closed this as completed Oct 19, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/fix Something isn't working needs: triage platform: ios iOS platform
Projects
None yet
Development

No branches or pull requests

3 participants