Parse OS X SDK doesn't work (and doesn't give any error)

Can Poyrazoğlu

I've created a new OS X app (I'm on latest Yosemite), grabbed the latest Parse OS X SDK, integrated it, and tried a query (on my already working Parse app that works just fine with iOS and Android) and it never completes. After initializing Parse as usual in app delegate, I call this:

PFQuery *usersQuery = [PFQuery queryWithClassName:@"_User"];
[usersQuery countObjectsInBackgroundWithBlock:^(int count, NSError *err){
        //we never get here!!
    }
}];

The completion handler is never called. No error, no warnings, nothing! I've tried a synchronous version of it:

int x = [usersQuery countObjects];

It immediately returns -1 without even sending a network request. I've tried to see what error it gives:

NSError *err;
int x = [usersQuery countObjects:&err];

And err still stays nil after the count method [immediately] returns. I've tried wrapping the call inside dispatch_async and dispatch_after blocks just in case I'm missing something about where to call it from, but no avail.

What can be the problem?

Can Poyrazoğlu

It was something to do with configuration. I was using CocoaPods to get the Parse framework. I've removed the pod, and downloaded the framework files manually from Parse's website, and added them to my project by old school drag and drop, and it worked. I don't know what was causing the problem, though.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Memory access violation doesn't give any error in c

From Dev

My applescript doesn't work any more when I upgrade my OS X to 10.9

From Dev

My applescript doesn't work any more when I upgrade my OS X to 10.9

From Dev

SPARQL query doesn't give any results

From Dev

Grunt doesn't give any output [Ubuntu]

From Dev

Why doesn't this method give any output?

From Dev

DbContext doesn't give any data

From Dev

pip doesn't work after upgrading to OS X Yosemite

From Dev

Importing request module in python doesn't work on OS X

From Dev

setrlimit doesn't work on OS X Maverick and Yosemite

From Dev

XAMPP 5.5.28 doesn't work on OS X 10.11

From Dev

Font Awesome doesn't work in MS Office on OS X 10.6

From Dev

Why doesn't isformula() work on Excel 2011 for OS X?

From Dev

why doesn't echo test &>>file work on OS X

From Dev

Keyboard shortcut for Service in OS X doesn't work

From Dev

Importing request module in python doesn't work on OS X

From Dev

Tensorflow doesn't work. And do not have any error code

From Dev

X rotation doesn't work

From Dev

X rotation doesn't work

From Dev

Incrementing numbers doesn't give an error

From Dev

Why doesn't this give redeclaration error?

From Dev

Why doesn't this give compilation error?

From Dev

Function called with no arguments doesn't give error

From Dev

Error with session, it doesn't work

From Dev

Parse Crash reporting doesn't work

From Dev

R - parse function doesn't work as expected

From Dev

IntlDateFormatter parse doesn't work with specific params

From Dev

JSON.parse : why this doesn't work

From Dev

parse html with regex, sometimes it doesn't work

Related Related

HotTag

Archive