Example code CPTestApp-iPhone compilation error

Asked By 20 points N/A Posted on -
qa-featured

Does anyone know why I get this internal error that the inheriting is nil when compiling the example code: code CPTestApp-iPhone and others?

messageString should be an instance inheriting from NSString, but it is nil
 
Internal Error
 
File:  /SourceCache/DevToolsBase/DevToolsBase-1204/pbxcore/Target
        .subproj/PBXBuildLongItem.m
 
Line:  1063
 
Object:  <PBXBuildLongRuleInvocationItem:0x02fa09c0>
 
Method:  addNewMessageItemOfClass:withMessageString:filePath:lineNumb
               er:
 
messageString should be an instance inheriting from NSString, but it is nil
 
                                                                       Quit                  Continue
SHARE
Answered By 0 points N/A #196734

Example code CPTestApp-iPhone compilation error

qa-featured

Hello,

You are getting that message because your code is raising an NSException. Since an exception is a special condition that interrupts the normal flow of the program execution, your should check the flow of your code. NSExp.txt file attached to this message will show you one of the methods that may send an error to your system and what could've provoked that exception. The method is " exceptionWithName:reason:userInfo"

You should also check the method "message:withProperties:andPayload:ofType." This method will return an autoreleased DMMessage instance containing a payload object, payload type, and an optional message string and properties dictionary. In order for the method to work, all parameters could be optional but at least one of them must be non-nil. The message string cannot exceed 1K in size and the optional dictionary cannot exceed 100K in size.
 
 
I hope this is useful.

 

Related Questions