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 following the Parse-Swift git hub tutorial.
I’m currently working on a “test app” in SwiftUI app using Xcode 13.4. and followed the playground sample code 17 - SwiftUI - Finding Objects.xcplaygroundpage.
I will share the code and the Error below:-
testApp.swift
import SwiftUI
import ParseSwift
@main
struct testApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) → Bool {
ParseSwift.initialize(applicationId: “APPLICATION_ID”, clientKey: “CLIENT_KEY”, serverURL: URL(string: “http://172.20.10.3”)!)
print(“Finish launching!”)
return true
}
}
FindingObjects.swift
Using 17 - SwiftUI - Finding Objects.xcplaygroundpage but removed initializeParse() and import PlaygroundSupport
The Error I’m receiving is below:-
Please help me on this. Much appreciated.
Best Regards,
Sebastian