Reputation: 11753
In an iOS app using the Parse pod.
pod 'Parse'
After I update the pod from version 1.17.1 to version 1.17.2, using this command line:
$ pod update
I get these two error messages when compiling the app:
On this line of code:
parse_Sound = PFFile(name: "Voice", data: soundData)
This error:
Use of unresolved identifier 'PFFile'; did you mean 'PFRole'?
On this line of code:
if let audioFile = item.value(forKey: "audio") as? PFFile {...}
This error:
Use of undeclared type 'PFFile'
I did not have these issues before doing the update.
Has anyone experienced the same problem and found a solution?
Upvotes: 2
Views: 697
Reputation: 19698
PFFile
is renamed to PFFileObject
. Just change your code to the below:
parse_Sound = PFFileObject(name: "Voice", data: soundData)
And
if let audioFile = item.value(forKey: "audio") as? PFFileObject {...}
Upvotes: 7