Finding an error in Xcode project.pbxproj after merging

I am facing a complex merge of two branches in my version control of iOS apps. After I identify and select the conflicting lines in project.pbxproj, Xcode will not load the file. A run through plutilshows this:

CFPropertyListCreateFromXMLData (): Simple old-style parsing: missing a semicolon in the dictionary.

I returned and tried to merge (carefully) a couple of times, and each time I get the same results, although I do not see where I present the format problem.

Is there a tool that I can use to find out at least which line or object is an error so that I can find the error I am making?

+3
source share
2

:

#import <Foundation/Foundation.h>
#import <err.h>

int main(int argc, const char * argv[])
{

    @autoreleasepool {

        NSString *path = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:argv[1] length:strlen(argv[1])];
        NSData *data = [NSData dataWithContentsOfFile:path];

        if (!data)
            errx(EXIT_FAILURE, "open failed: %s\n", argv[1]);

        NSString *errorString;
        id plist = [NSPropertyListSerialization propertyListFromData:data
                                                    mutabilityOption:NSPropertyListImmutable
                                                              format:NULL
                                                    errorDescription:&errorString];


        if (!plist)
            errx(EXIT_FAILURE, "%s\n", [errorString UTF8String]);

        printf("plist successfully read\n");
    }
    return 0;
}

project.pbxproj:

// !$*UTF8*$!
{
        archiveVersion = 1;
        classes = {
                x = 1
        };
...

:

2012-05-11 20: 51:14.381 plist-test [41890: 303] CFPropertyListCreateFromXMLData(): : 6. . _CFPropertyListMissingSemicolon .

+3

, , , , - .

CFPropertyListIsValid() , - . :

, .

, ? , Apple "" "-" ( , ". " false), .

, CFPropertyListCreateWithStream() , . , , NULL. , NULL, .

0

All Articles