Skip to content

Commit ab82fcf

Browse files
authored
feat(nfc): document minimum target iOS version (#3455)
1 parent 634a48e commit ab82fcf

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/content/docs/plugin/nfc.mdx

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,35 @@ The NFC plugin requires native configuration for iOS.
8585

8686
### iOS
8787

88-
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.
88+
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.
89+
90+
#### Target IOS version
91+
92+
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.
93+
94+
In the `src-tauri/gen/apple/<project-name>.xcodeproj/project.pbxproj` file, set all `IPHONEOS_DEPLOYMENT_TARGET` properties to `14.0`:
95+
96+
```title="src-tauri/gen/apple/<project-name>.xcodeproj/project.pbxproj"
97+
/* Begin XCBuildConfiguration section */
98+
<random-id> /* release */ = {
99+
isa = XCBuildConfiguration;
100+
buildSettings = {
101+
...
102+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
103+
};
104+
name = release;
105+
};
106+
<random-id> /* debug */ = {
107+
isa = XCBuildConfiguration;
108+
buildSettings = {
109+
...
110+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
111+
};
112+
name = debug;
113+
};
114+
```
115+
116+
Alternatively you can set the deployment target from Xcode in the `General > Minimum Deployments > iOS` configuration.
89117

90118
#### Info.plist
91119

0 commit comments

Comments
 (0)