【问题标题】:'Schema class name does not revalidate' error when trying to add a class to parse尝试添加要解析的类时出现“架构类名不重新验证”错误
【发布时间】:2019-05-06 08:59:08
【问题描述】:

我正在尝试保存一个要解析的类。但是,当我这样做时,它给了我错误“模式类名没有重新验证”。我该如何处理?

我已经尝试更改班级的名称,但即使这样也无法正常工作。在解析方面我是初学者。

let myPost = PFObject(className: textField.text!)
            myPost["Name"] = textField.text!
            myPost["Notes"] = Note.text
            myPost["memberNumber"] = Int(stepper.value)
            myPost["members"] = "\((Auth.auth().currentUser?.uid)!):\((Auth.auth().currentUser?.email)!)'"
            myPost.saveInBackground { (successful, error) in
                if successful {
                   NSLog("Event Saved")
                }
                else {
                    NSLog("Save failed")
                    print(error)
                }

它应该保存,但由于某种原因它没有。

【问题讨论】:

  • 类名是什么?
  • Parse Server 中的 allowClientClassCreation 标志是否设置为 true?

标签: swift parse-platform parse-server


【解决方案1】:

我认为这个问题与你的类名有关我有同样的错误类名应该是一个没有空格或任何其他符号的字符串,即“用户名”而不是“用户名”或“用户名?”

我希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-16
    • 2017-06-14
    • 1970-01-01
    • 1970-01-01
    • 2019-04-18
    • 1970-01-01
    相关资源
    最近更新 更多