From ab82fcf0aec5c77c172f34ee50ac112afd9ae42e Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sat, 16 Aug 2025 10:32:28 -0300 Subject: [PATCH] feat(nfc): document minimum target iOS version (#3455) --- src/content/docs/plugin/nfc.mdx | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/content/docs/plugin/nfc.mdx b/src/content/docs/plugin/nfc.mdx index 22aa0c395..dd1815d4a 100644 --- a/src/content/docs/plugin/nfc.mdx +++ b/src/content/docs/plugin/nfc.mdx @@ -85,7 +85,35 @@ The NFC plugin requires native configuration for iOS. ### iOS -To access the NFC APIs on iOS you must configure a usage description on the Info.plist file and add the NFC capability to your application. +To access the NFC APIs on iOS you must adjust the target iOS version, configure a usage description on the Info.plist file and add the NFC capability to your application. + +#### Target IOS version + +The NFC plugin requires iOS 14+. This is the default for Tauri applications created with Tauri CLI v2.8 and above, but you can edit your Xcode project to configure it. + +In the `src-tauri/gen/apple/.xcodeproj/project.pbxproj` file, set all `IPHONEOS_DEPLOYMENT_TARGET` properties to `14.0`: + +```title="src-tauri/gen/apple/.xcodeproj/project.pbxproj" +/* Begin XCBuildConfiguration section */ + /* release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ... + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + }; + name = release; + }; + /* debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ... + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + }; + name = debug; + }; +``` + +Alternatively you can set the deployment target from Xcode in the `General > Minimum Deployments > iOS` configuration. #### Info.plist