I am getting error while writing the below code


I am using Xcode 7.3.1 and OS X El Capitan and while using the code::double seconds = [now timeIntervalSince1970];
i am getting an error. May I know why i am getting error incompatible assignement


Please post your code, and the exact error message you are getting.

To make it easier for viewing, present your code between the code tags, like this:

int main (int argc, const char * argv []) {
    @autoreleasepool {
        NSTimeInterval timeInterval = [[NSDate date] timeIntervalSince1970];
    return 0;