iOS - Parse Issues in Nsobjcruntime, Nszone, and Nsobject

ios - Parse Issues in NSObjCRuntime, NSZone, and NSObject

I just changed the filename of Base64Transcoder.c to Base64Transcoder.m, and now the project compiles. I have no idea why this fixes the problem, but it works.

C++ - Many parse Issues in NSObjCRuntime and NSZone

Well, I found the problem. In the template project, the template.cpp file was marked as an Objective-C++ source file, but it obviously wasn't being reimported as one. Changing the file type fixed the problem.

Xcode 6 - Unknown type name 'NSString' / Expected identifier or '('

The problem was that I had some .c files in my project, apparently Xcode 6 doesn't like .c files.

I changed the extension of the .c files to .m and Xcode 6 is happy again!

Adding Chipmunk Files to XCode NSObjCRuntime NSZone Parse Issue

I would check and make sure the added files are 'typed' correctly by Xcode. Make sure they are set to Objective-C, C++ or C (whatever is appropriate in this case). I used to get tons of errors when importing C files that were mistakenly recognized as Objective-C by Xcode. Just changing the file type would solve most of the compile errors. Just and idea.

Converting to ARC doesn't recognize -fno-objc-arc flag

temporary getaround (unless someone can suggest better)

I have having error with the following in JSONKit.h

typedef struct {
JKParseOptionFlags parseOptionFlags;
JKConstBuffer stringBuffer;
size_t atIndex, lineNumber, lineStartIndex;
size_t prev_atIndex, prev_lineNumber, prev_lineStartIndex;
int errorIsPrev;
JKParseToken token;
JKObjectStack objectStack;
JKTokenCache cache;
JKObjCImpCache objCImpCache;
NSError *error;
} JKParseState;

the error is on the NSError line - "ARC forbids Objective-C objects in structs or unions"

following another stackoverflow question, I changed the line to

__unsafe_unretained NSError *error;

and it compiles... seems to work ok so far



Related Topics



Leave a reply



Submit