You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
78
-
.setProject("5df5acd0d48c2") // Your project ID
79
-
.setSelfSigned(status: true) // For self signed certificates, only use for development</code></pre>
77
+
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
78
+
.setProject("5df5acd0d48c2") // Your project ID
79
+
.setSelfSigned(status: true) // For self signed certificates, only use for development</code></pre>
80
80
</div>
81
81
82
82
<p>Before sending any API calls to your new Appwrite project, make sure your Android device or emulator has network access to your Appwrite project's hostname or IP address.</p>
<h2><a href="/docs/getting-started-for-apple#addProject" id="addProject">Add your Apple Platform</a></h2>
25
25
26
-
<p>To init your SDK and start interacting with Appwrite services, you need to add a new Apple platform to your project. To add a new platform, go to your Appwrite console, choose the project you created in the step before, and click the 'Add Platform' button. Only API requests initiated from platforms added to your Appwrite project will be accepted. This prevents unauthorized apps from accessing your Appwrite project.</p>
26
+
<p>To init your SDK and start interacting with Appwrite services, you need to add a new Apple platform to your project. To add a new platform, go to your Appwrite console, choose the project you created in the step before, and click the <b>'Add Platform'</b> button. Only API requests initiated from platforms added to your Appwrite project will be accepted. This prevents unauthorized apps from accessing your Appwrite project.</p>
27
27
28
-
<p>From the options, choose to add a new <b>Apple</b> platform, select the iOS, macOS, watchOS or tvOS tab and add your app <u>name</u> and <u>bundle identifier</u>, Your bundle identifier can be found at the top of the `General` tab in your project settings, or in your `Info.plist` file. By registering your new app platform, you are allowing your app to communicate with the Appwrite API.</p>
28
+
<p>From the options, choose to add a new <b>Apple</b> platform, select the iOS, macOS, watchOS or tvOS tab and add your app <u>name</u> and <u>bundle identifier</u>, Your bundle identifier can be found at the top of the <b>General</b> tab in your project settings, or in your <b>Info.plist</b> file. By registering your new app platform, you are allowing your app to communicate with the Appwrite API.</p>
29
29
30
30
<h2><a href="/docs/getting-started-for-apple#getSDK" id="getSDK">Get Appwrite Apple SDK</a></h2>
31
31
32
32
<h3>Using Xcode</h3>
33
33
34
34
<ol>
35
-
<li>Select File > Swift Packages > Add Package Dependency</li>
35
+
<li>Select File > Add Packages</li>
36
36
<li>Search for the Appwrite SDK with the URL https://github.com/appwrite/sdk-for-apple</li>
37
-
<li>Add version rules</li>
38
-
<li>Select next and wait for package resolution to complete</li>
39
-
<li>Make sure `Appwrite` is selected to add to your target and select finish</li>
37
+
<li>In the right panel, select your target project and add your desired version rules</li>
38
+
<li>Select Add Package and wait for package resolution to complete</li>
39
+
<li>Make sure the Appwrite package product is checked and select Add Package again</li>
40
40
</ol>
41
41
42
42
<h3>Using Swift Packages</h3>
43
43
44
-
<p>Add this to your Package.swift file: </p>
44
+
<p>Add the following to your Package.swift file: </p>
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
109
-
.setProject("5df5acd0d48c2") // Your project ID
110
-
.setSelfSigned(status: true) // For self signed certificates, only use for development</code></pre>
113
+
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
114
+
.setProject("5df5acd0d48c2") // Your project ID
115
+
.setSelfSigned(status: true) // For self signed certificates, only use for development
116
+
</code></pre>
111
117
</div>
112
118
113
119
<p>Before sending any API calls to your new Appwrite project, make sure your device or iOS emulator has network access to your Appwrite project's hostname or IP address.</p>
0 commit comments