-
-
Notifications
You must be signed in to change notification settings - Fork 878
deleteInBackgroundWithBlock Mac OS X #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Go you see anything printed to the console? |
The line:
Does print but when I log into Parse.com the object is still there. |
Can you try reproducing the problem with curl and/or REST API? I suspect this to be a backend problem, since the client code finishes with some deterministic output. Also based on your code - can you try printing the error that you get in the final closure? (deleteInBackground callback error). |
I have printed out the Parse version and it printed version 1.8.0. I have updated to 1.8.1 and now the project won't build and shows the error below:
|
Based on the error message looks like you are missing |
The |
Cleaning Xcode DerivedData I guess didn't help as well? There was a bug change between 1.8 and 1.8.1 - the framework was renamed into The warning above simply says that code signing failed or that the copied framework inside your app is completely not code signed, but it should be. |
I have downloaded the SDK from Parse.com then installed by dragging it into my Xcode Project. I Have also changed the Bridging Header form I have just deleted the Derived Data and built the project again but it has the same error. |
Would using Cocoapods fix this issue? |
Yup, that would help a lot. |
I have just installed version 1.8.1 and I am having the same issue with the deleteInBackgroundWithBlock |
Ok, one problem resolved - onto the next one. |
I am using Full code:
|
@tomcoomer Can you try reproducing the problem via curl request?
|
Sorry, do I run this in Terminal? |
Yup, paste this into terminal (replace with your keys first, though) |
I have done that and it shows this: |
Hmm... Are you sure you used the right keys (it's REST Key vs Client Key)? |
Sorry, I forgot to remove the < and > either side of the keys. |
Definetly interested in whether this issue reproduce for a different object. |
Should I try it again for another object? |
Yes, if that's not a hassle. Thank you! |
I have tried deleting two more objects using Terminal and it has worked correctly, however using the Swift code it does not delete. |
What would be printed with |
I have changed it to |
I have just tried |
I think I found the potential problem. And this is quite fascinating... Submitting a fix for it in a few minutes, but in the meantime - could you try simply holding an object reference, say in ivar or referencing it once again inside the closure? |
Using the code below deletes the object successfully:
|
Woohoo! My theory was correct. Pull Request is coming to eliminate the requirements to use this at all. |
Excellent! Will this version install using Cocoapods? |
Yup. This will be included in 1.8.2, which is coming very soon.
|
That's great! Thank you for your help. |
I am using the code below that has previously worked to delete an object. However, after updating to the latest SDK, It no longer seems to be working. Any ideas?
Thanks
The text was updated successfully, but these errors were encountered: