I have been getting the following error when trying to run my app with NFC on my iPhone 7:
“App_Name” requires the “nfc” capability which is not supported by iPhone
I have been getting the following error when trying to run my app with NFC on my iPhone 7:
“App_Name” requires the “nfc” capability which is not supported by iPhone
Which app ?
Do you use NFC for Apple pay ? AFAIK, NFC is not accessible to 3rd party.
Sorry, I should be more descriptive.
I have an existing app, which I have been updating to support NFC on the new iOS Beta 11.
Until today I had NFC working.
Today I downloaded the xCode Beta 2 and used the "Capabilites" tab to enable NFC.
I also added logic to prevent iOS versions lower than 11 to not handle NFC using @available(iOS 11.0, *).
After this change, when trying to run my code on an iPhone 7, it gives the error:
“App_Name” requires the “nfc” capability which is not supported by iPhone
I tried reverting the changes I made but the error presisted, unsure what has caused the issue to arise.
Thanks
So you turned off the NFC capability ?
Did you look at the entitlements to see it it is effectively off and no subfield remains ? You could also probably delete this part of entitlement to completely clean it.
I did delete the entitlements but the NFC Capabilites said for it to be added, so I allowed it to add it automatically.
NFC has been enabled, it has been working on the same iPhone. But now XCode 9 Beta 2 will not allow me to run it on my iPhone
(Hopefully, you can see these images)
The following is the Error I get, when trying to build my app onto my iPhone 7.
The following is the Capabilites tab showing that NFC has been enabled
The images are deleted by the forum software.
Can I ask a stupid question? Are you sure you didn't accidentally switch back to an iPhone 7 simulator destination? It's something I've done from time to time, and it's easy to overlook.
It's not a stupid question haha
I'm definitely set to run on my own iPhone 7. I have tried running it on the iPhone 7 simulator and it runs fine (apart from CoreNFC not working but that is expected).
Hi, Same problem for me. Real device throws this error message, simulator runs fine. (Xcode beta 2)
Hı!
I had the same issuse but i solved it by deleting nfc from UIRequiredDeviceCapabilities in info.plist