# ParseSwift SDK

**URL:** https://community.parseplatform.org/c/client-sdks/parseswift-sdk/25.md

[Latest](https://community.parseplatform.org/latest.md) · [Categories](https://community.parseplatform.org/categories.md) · [Tags](https://community.parseplatform.org/tags.md)

---

## [Facing issue in spotify login](https://community.parseplatform.org/t/facing-issue-in-spotify-login/4932)

<div class="topic-metadata">

**Author:** [@rahul29](https://community.parseplatform.org/u/rahul29)\
**Replies:** 0\
**Last updated:** [April 13, 2025, 8:36pm UTC](https://community.parseplatform.org/t/facing-issue-in-spotify-login/4932 "2025-04-13T20:36:12Z")

</div>

When using 3rd party auth spotify for login, i am getting below error. Please let me know if i am missing anything in the parameters. Uncaught internal server error. spotify options are required. Here is the code whic…

---

## ['ParseSwift' package required by package ... not found. When specified in Package.swift file](https://community.parseplatform.org/t/parseswift-package-required-by-package-not-found-when-specified-in-package-swift-file/4240)

<div class="topic-metadata">

**Author:** [@stephen-oconnor-cp](https://community.parseplatform.org/u/stephen-oconnor-cp)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 12:23pm UTC](https://community.parseplatform.org/t/parseswift-package-required-by-package-not-found-when-specified-in-package-swift-file/4240 "2024-06-28T12:23:45Z")

</div>

I’m refactoring some code, and I’ve gone from linking the Package via Xcode’s Package dependencies to making it a dependency in the Package manifest of a local package: // swift-tools-version: 5.9 import PackageDescrip…

---

## [LiveQuery stops and does not restart in the background](https://community.parseplatform.org/t/livequery-stops-and-does-not-restart-in-the-background/2410)

<div class="topic-metadata">

**Author:** [@EliteTechnicalCare](https://community.parseplatform.org/u/EliteTechnicalCare)\
**Replies:** 16\
**Last updated:** [October 17, 2023, 3:02am UTC](https://community.parseplatform.org/t/livequery-stops-and-does-not-restart-in-the-background/2410 "2023-10-17T03:02:55Z")

</div>

While I am in the app, everything works great. I put the app in the background and come back even 30 seconds later and it’s no longer updating etc. I am fairly new at parse and even newer at LiveQuery so I am not sure wh…

---

## [ParseSwift reverse query](https://community.parseplatform.org/t/parseswift-reverse-query/3545)

<div class="topic-metadata">

**Author:** [@darwish](https://community.parseplatform.org/u/darwish)\
**Replies:** 0\
**Last updated:** [July 18, 2023, 11:18am UTC](https://community.parseplatform.org/t/parseswift-reverse-query/3545 "2023-07-18T11:18:42Z")

</div>

Hello, I have a table of Candidates which has a one to one relationship to another table Called AssessmentFiles. I currently query all the candidates with .inluceAll() to get the candidates with the accosted assessmnet…

---

## [Is ParseSwift SDK going to replace iOS SDK?](https://community.parseplatform.org/t/is-parseswift-sdk-going-to-replace-ios-sdk/3123)

<div class="topic-metadata">

**Author:** [@Eli](https://community.parseplatform.org/u/Eli)\
**Replies:** 4\
**Last updated:** [May 28, 2023, 7:30pm UTC](https://community.parseplatform.org/t/is-parseswift-sdk-going-to-replace-ios-sdk/3123 "2023-05-28T19:30:40Z")

</div>

Hello everyone, I’m working on a new iOS app for some freelance work. I like to use back4app when solo developing projects. I noticed a (new to me) SDK (ParseSwift). I’m familiar with the iOS SDK and wondered if the Pa…

---

## [Query with a large set of results](https://community.parseplatform.org/t/query-with-a-large-set-of-results/3320)

<div class="topic-metadata">

**Author:** [@kiwijon](https://community.parseplatform.org/u/kiwijon)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 7:33am UTC](https://community.parseplatform.org/t/query-with-a-large-set-of-results/3320 "2023-03-19T07:33:02Z")

</div>

Hi, I’m currently updating my app to use the new ParseSwift SDK. Previously I was using the PFQueryTableViewController which handled pagination of loading data. Is there something built in with the new SDK or is it a ca…

---

## [SwiftUI, CoreData and ParseSwift example app?](https://community.parseplatform.org/t/swiftui-coredata-and-parseswift-example-app/3304)

<div class="topic-metadata">

**Author:** [@claesjacobsson](https://community.parseplatform.org/u/claesjacobsson)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 4:39pm UTC](https://community.parseplatform.org/t/swiftui-coredata-and-parseswift-example-app/3304 "2023-03-09T16:39:16Z")

</div>

Hi! I would like to build an app with SwiftUI, CoreData and ParseSwift. The app UI shall not query the Parse Server directly but load data from CoreData. I would like to build a sync engine between CoreData and the Pars…

---

## [ParseSwift Installation crashes](https://community.parseplatform.org/t/parseswift-installation-crashes/3118)

<div class="topic-metadata">

**Author:** [@bcbeta](https://community.parseplatform.org/u/bcbeta)\
**Replies:** 3\
**Last updated:** [December 22, 2022, 2:16pm UTC](https://community.parseplatform.org/t/parseswift-installation-crashes/3118 "2022-12-22T14:16:04Z")

</div>

I am getting a number of crashes related to the installation in ParseSwift: Exception Type: EXC\_BAD\_ACCESS (SIGSEGV) Exception Subtype: KERN\_INVALID\_ADDRESS at 0x8000000000000008 → 0x0000000000000008 (possible pointe…

---

## [DeleteAll ParseObjects](https://community.parseplatform.org/t/deleteall-parseobjects/2781)

<div class="topic-metadata">

**Author:** [@darwish](https://community.parseplatform.org/u/darwish)\
**Replies:** 5\
**Last updated:** [November 1, 2022, 9:18pm UTC](https://community.parseplatform.org/t/deleteall-parseobjects/2781 "2022-11-01T21:18:44Z")

</div>

Hello, I am sorry for what seems like a basic question but I am very new to ParseSwift. how can i delete all records like in other SDK? other than the current solution that comes to mind is running it via cloud code as…

---

## [Syncing a local store](https://community.parseplatform.org/t/syncing-a-local-store/1455)

<div class="topic-metadata">

**Author:** [@pierlux](https://community.parseplatform.org/u/pierlux)\
**Replies:** 22\
**Last updated:** [October 24, 2022, 8:53pm UTC](https://community.parseplatform.org/t/syncing-a-local-store/1455 "2022-10-24T20:53:17Z")

</div>

I want to make an Offline-first application. I am considering using standard CoreData for that. The collaborative and syncing features are to be handled through Parse. To keep my CoreData in sync, I expect to need to…

---

## [Trying to remove Parse-Swift dependency and implement file upload myself results in Invalid file upload (code 130)](https://community.parseplatform.org/t/trying-to-remove-parse-swift-dependency-and-implement-file-upload-myself-results-in-invalid-file-upload-code-130/3007)

<div class="topic-metadata">

**Author:** [@JohnRoxMySox](https://community.parseplatform.org/u/JohnRoxMySox)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 1:14pm UTC](https://community.parseplatform.org/t/trying-to-remove-parse-swift-dependency-and-implement-file-upload-myself-results-in-invalid-file-upload-code-130/3007 "2022-10-23T13:14:48Z")

</div>

Hello, For some reason, I have been asked to remove Parse dependency from my target, but our backend/DB still relies on it. With Parse-Swift, I was BTW using this code to save a file to our DB: try ParseFile( name…

---

## [Trouble saving using cachePolicy( . returnCacheDataElseLoad)](https://community.parseplatform.org/t/trouble-saving-using-cachepolicy-returncachedataelseload/2992)

<div class="topic-metadata">

**Author:** [@Brian](https://community.parseplatform.org/u/Brian)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 1:15am UTC](https://community.parseplatform.org/t/trouble-saving-using-cachepolicy-returncachedataelseload/2992 "2022-10-23T01:15:46Z")

</div>

Hi - My client app (IOS app using ParseSwift v4.14.2) needs to save data to the local Parse instance while the app is offline. The example: The app connects to a bluetooth device The app logic wants to record the time…

---

## [Subscribe to ParseUser.current](https://community.parseplatform.org/t/subscribe-to-parseuser-current/1477)

<div class="topic-metadata">

**Author:** [@pierlux](https://community.parseplatform.org/u/pierlux)\
**Replies:** 5\
**Last updated:** [October 11, 2022, 10:28am UTC](https://community.parseplatform.org/t/subscribe-to-parseuser-current/1477 "2022-10-11T10:28:19Z")

</div>

Is there a way to monitor changes to ParseUser.current? I’d like my UI to refresh based on the login status. I’d like to do it through Combine to avoid coupling in the code base as the log out is done through a UIContext…

---

## [I need help to switch from Parse-iOS-SDK to Parse-Swift with a Redux-like implementation](https://community.parseplatform.org/t/i-need-help-to-switch-from-parse-ios-sdk-to-parse-swift-with-a-redux-like-implementation/2962)

<div class="topic-metadata">

**Author:** [@JohnRoxMySox](https://community.parseplatform.org/u/JohnRoxMySox)\
**Replies:** 3\
**Last updated:** [October 3, 2022, 10:08am UTC](https://community.parseplatform.org/t/i-need-help-to-switch-from-parse-ios-sdk-to-parse-swift-with-a-redux-like-implementation/2962 "2022-10-03T10:08:54Z")

</div>

Hello, I am working on a project whose model is generated automatically in Swift from a web (Typescript) representation, and contained in a library (say “Model”). Each object from the model must be representable as a J…

---

## [Can I access all the object keys?](https://community.parseplatform.org/t/can-i-access-all-the-object-keys/2954)

<div class="topic-metadata">

**Author:** [@JohnRoxMySox](https://community.parseplatform.org/u/JohnRoxMySox)\
**Replies:** 2\
**Last updated:** [September 30, 2022, 2:07pm UTC](https://community.parseplatform.org/t/can-i-access-all-the-object-keys/2954 "2022-09-30T14:07:35Z")

</div>

I have a project using the legacy Parse-SDK-iOS library, and I would like to replace it by the new Parse-Swift one. In this project, I often had to use the allKeys property of the PFObjects, as well as the value(forKey:…

---

## [Saving array of objects containing ParseFiles](https://community.parseplatform.org/t/saving-array-of-objects-containing-parsefiles/2951)

<div class="topic-metadata">

**Author:** [@bcbeta](https://community.parseplatform.org/u/bcbeta)\
**Replies:** 0\
**Last updated:** [September 29, 2022, 2:39am UTC](https://community.parseplatform.org/t/saving-array-of-objects-containing-parsefiles/2951 "2022-09-29T02:39:48Z")

</div>

I have a PFPhoto object which contains 2 ParseFiles: struct PFPhoto: ParseObject { //: These are required by ParseObject var objectId: String? var createdAt: Date? var updatedAt: Date? var ACL: Parse…

---

## [How to add relationships between objects?](https://community.parseplatform.org/t/how-to-add-relationships-between-objects/2406)

<div class="topic-metadata">

**Author:** [@InstaRobot](https://community.parseplatform.org/u/InstaRobot)\
**Replies:** 11\
**Last updated:** [September 27, 2022, 11:52am UTC](https://community.parseplatform.org/t/how-to-add-relationships-between-objects/2406 "2022-09-27T11:52:35Z")

</div>

Hello, I have two base classes struct ParseCategory: ParseObject { var objectId: String? var createdAt: Date? var updatedAt: Date? var ACL: ParseACL? var originalData: Data? var name: Strin…

---

## [Viewmodel query with a pointer](https://community.parseplatform.org/t/viewmodel-query-with-a-pointer/2917)

<div class="topic-metadata">

**Author:** [@bcbeta](https://community.parseplatform.org/u/bcbeta)\
**Replies:** 5\
**Last updated:** [September 19, 2022, 10:32am UTC](https://community.parseplatform.org/t/viewmodel-query-with-a-pointer/2917 "2022-09-19T10:32:09Z")

</div>

I have successfully migrated from objC to swift but I am new to SwiftUI and have been struggling a bit with the view models. From what I gather I am not allowed the following query because it requires a try: @StateObj…

---

## [How to transition from the old Parse framework](https://community.parseplatform.org/t/how-to-transition-from-the-old-parse-framework/2807)

<div class="topic-metadata">

**Author:** [@danipralea](https://community.parseplatform.org/u/danipralea)\
**Replies:** 19\
**Last updated:** [September 13, 2022, 11:35pm UTC](https://community.parseplatform.org/t/how-to-transition-from-the-old-parse-framework/2807 "2022-09-13T23:35:45Z")

</div>

Hello! As the title says, how do I make the transition from the old Parse framework to Parse Swift seamlessly (Authentication wise)? As of now, the only way I see possible is force users to re-login and is not really a…

---

## [Query on a relationship](https://community.parseplatform.org/t/query-on-a-relationship/2893)

<div class="topic-metadata">

**Author:** [@bcbeta](https://community.parseplatform.org/u/bcbeta)\
**Replies:** 2\
**Last updated:** [September 6, 2022, 6:09pm UTC](https://community.parseplatform.org/t/query-on-a-relationship/2893 "2022-09-06T18:09:36Z")

</div>

I am able to query a property of the class directly: @StateObject var viewModel = PFTour.query("name" == "Notchtop") .order(\[.descending("date")\]) .includeAll() .viewModel But when I query on a …

---

## [ParseHealth.check()](https://community.parseplatform.org/t/parsehealth-check/2886)

<div class="topic-metadata">

**Author:** [@ddtbuilder](https://community.parseplatform.org/u/ddtbuilder)\
**Replies:** 1\
**Last updated:** [August 31, 2022, 12:07am UTC](https://community.parseplatform.org/t/parsehealth-check/2886 "2022-08-31T00:07:46Z")

</div>

HI all, Using ParseSwift with back4app as the ParseServer host. I’m new and learning, but when I run: ParseHealth.check() …all I get back is ParseError code=-1 error=Invalid struct: No value associated with key Coding…

---

## [Error decoding parse-server response](https://community.parseplatform.org/t/error-decoding-parse-server-response/1446)

<div class="topic-metadata">

**Author:** [@claesjacobsson](https://community.parseplatform.org/u/claesjacobsson)\
**Replies:** 27\
**Last updated:** [March 28, 2021, 2:31am UTC](https://community.parseplatform.org/t/error-decoding-parse-server-response/1446 "2021-03-28T02:31:43Z")

</div>

I’m playing around with ParseSwift and a local Parse Server (4.5.0). Whenever I try to perform a query or saving an object to the server I get the error below. Not sure what I’m doing wrong… ParseError code=-1 error=Er…

---

## [ParseSwift - Error Decoding Parse-Server Response in SwiftUI App](https://community.parseplatform.org/t/parseswift-error-decoding-parse-server-response-in-swiftui-app/2831)

<div class="topic-metadata">

**Author:** [@sebpeterkasi](https://community.parseplatform.org/u/sebpeterkasi)\
**Replies:** 1\
**Last updated:** [August 8, 2022, 10:30am UTC](https://community.parseplatform.org/t/parseswift-error-decoding-parse-server-response-in-swiftui-app/2831 "2022-08-08T10:30:17Z")

</div>

Hi Guys, I’m new in Parse and Parse-Swift. I have Installed and run my Open Source Parse-Server and have tested using curl to send data to the server and all good. Now I’m trying to send data to my Parse-Server followi…

---

## [Getting more details on decoding errors](https://community.parseplatform.org/t/getting-more-details-on-decoding-errors/2788)

<div class="topic-metadata">

**Author:** [@danipralea](https://community.parseplatform.org/u/danipralea)\
**Replies:** 3\
**Last updated:** [July 12, 2022, 2:33pm UTC](https://community.parseplatform.org/t/getting-more-details-on-decoding-errors/2788 "2022-07-12T14:33:04Z")

</div>

Hello! Is there any way to get more details on decoding errors? Codable provides some nice logging with the try catch mechanism. is there any way to use that? I’m currently having issues with a request. I am trying to…

---

## [Write Server-Side Cloud Code with the Swift SDK](https://community.parseplatform.org/t/write-server-side-cloud-code-with-the-swift-sdk/2769)

<div class="topic-metadata">

**Author:** [@cbaker6](https://community.parseplatform.org/u/cbaker6)\
**Replies:** 5\
**Last updated:** [July 4, 2022, 6:27pm UTC](https://community.parseplatform.org/t/write-server-side-cloud-code-with-the-swift-sdk/2769 "2022-07-04T18:27:39Z")

</div>

Version 4.6.0 of the Swift SDK allows you to write Parse Cloud Code Functions and Triggers completely in Swift by taking advantage of Parse Webhooks. Using the Swift SDK on the server-side allows you to send Push Noti…

---

## [Authenticating Parse Cloud Function](https://community.parseplatform.org/t/authenticating-parse-cloud-function/2732)

<div class="topic-metadata">

**Author:** [@danipralea](https://community.parseplatform.org/u/danipralea)\
**Replies:** 7\
**Last updated:** [June 15, 2022, 9:58am UTC](https://community.parseplatform.org/t/authenticating-parse-cloud-function/2732 "2022-06-15T09:58:28Z")

</div>

Hello! Can someone please point me to a guide on authenticating Parse Cloud Swift functions with the new ParseSwift library? I did a sample project aka POC (trying to migrate a huge project with the old Objc Parse libr…

---

## [ParseError code=-1 error=Invalid struct: No value associated with key CodingKeys(stringValue: "objectId", intValue: nil) ("objectId")](https://community.parseplatform.org/t/parseerror-code-1-error-invalid-struct-no-value-associated-with-key-codingkeys-stringvalue-objectid-intvalue-nil-objectid/2530)

<div class="topic-metadata">

**Author:** [@EliteTechnicalCare](https://community.parseplatform.org/u/EliteTechnicalCare)\
**Replies:** 16\
**Last updated:** [May 2, 2022, 6:08pm UTC](https://community.parseplatform.org/t/parseerror-code-1-error-invalid-struct-no-value-associated-with-key-codingkeys-stringvalue-objectid-intvalue-nil-objectid/2530 "2022-05-02T18:08:01Z")

</div>

Hello, I am getting an error when saving the object. Mind you it still saves it to the parse server, but the persistent error is annoying. I am unable to reproduce this error using any other struct other than my message…

---

## [Easiest way to check if user has a specific role?](https://community.parseplatform.org/t/easiest-way-to-check-if-user-has-a-specific-role/2546)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 4\
**Last updated:** [April 8, 2022, 3:22pm UTC](https://community.parseplatform.org/t/easiest-way-to-check-if-user-has-a-specific-role/2546 "2022-04-08T15:22:55Z")

</div>

What’s the easiest way to do if user.isAdmin() { // only show if admin } struct User { func isAdmin() { / / code here } } I’m looking into the ParseSwift samples but I’m still a bit confused on how to implemen…

---

## [Is it possible to save a \[Any\]?](https://community.parseplatform.org/t/is-it-possible-to-save-a-any/2553)

<div class="topic-metadata">

**Author:** [@EliteTechnicalCare](https://community.parseplatform.org/u/EliteTechnicalCare)\
**Replies:** 1\
**Last updated:** [March 28, 2022, 11:18pm UTC](https://community.parseplatform.org/t/is-it-possible-to-save-a-any/2553 "2022-03-28T23:18:54Z")

</div>

Say I have an Array with multiple types: \[“Hello World”, true, 3\] (String, Bool, Int) Would I be able to save the above in parse? I have attempted to do the following with no avail: struct Template: ParseObject { v…

---

## [ParseSwift login examples for Apple, Facebook, & Google login](https://community.parseplatform.org/t/parseswift-login-examples-for-apple-facebook-google-login/2481)

<div class="topic-metadata">

**Author:** [@jem5519](https://community.parseplatform.org/u/jem5519)\
**Replies:** 3\
**Last updated:** [March 9, 2022, 7:21am UTC](https://community.parseplatform.org/t/parseswift-login-examples-for-apple-facebook-google-login/2481 "2022-03-09T07:21:41Z")

</div>

I am looking for sample code for Apple, Facebook, & Google logins with ParseSwift. I have the Parse iOS SDK samples but they don’t carry over to ParseSwift. I have looked at the playground examples but they don’t cover t…

[Next page](https://community.parseplatform.org/c/client-sdks/parseswift-sdk/25.md?page=1)
