Budgie
October 21, 2014, 9:43pm
#1
Hi all
I have just upgraded to Xcode 6.1 (on Yosemite), and have just gone to build my cocoa applescript application (which has had no issues building in any other version of Xcode in the past) and I am swamped with errors.
Xcode says it’s “build succeeded”, yet the icon just bounces away in the dock, not actually opening the app at all.
The errors I am getting are as below.
I have built a test app using code, and scot files from the original application, and that compiles and launches with no
problems, which is making it very hard to figure where the problem may be.
can any one help me try to figure out what Xcode has done please.
(sorry if i posted to much error info)
2014-10-22 10:38:31.694 BLACK MASK[13907:1081754] Could not connect the action Get100X210OPQ: to target of class NSObject
2014-10-22 10:38:31.694 BLACK MASK[13907:1081754] Could not connect the action MPILLY: to target of class NSObject
2014-10-22 10:38:31.698 BLACK MASK[13907:1081754] An uncaught exception was raised
2014-10-22 10:38:31.698 BLACK MASK[13907:1081754] [<NSObject 0x60800001c950> valueForUndefinedKey:]: this class is not key value coding-compliant for the key theStatus.
2014-10-22 10:38:31.698 BLACK MASK[13907:1081754] (
0 CoreFoundation 0x00007fff954ed64c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8cd286de objc_exception_throw + 43
2 CoreFoundation 0x00007fff954ed1e9 -[NSException raise] + 9
3 Foundation 0x00007fff8dbdb5ed -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226
4 Foundation 0x00007fff8daf8e68 -[NSObject(NSKeyValueCoding) valueForKey:] + 385
5 Foundation 0x00007fff8db118e3 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 324
6 AppKit 0x00007fff9213ca0f -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 164
7 AppKit 0x00007fff92140850 -[NSValueBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] + 302
8 AppKit 0x00007fff922d29d8 -[NSSelectionBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] + 1313
9 AppKit 0x00007fff9214068b -[NSValueBinder _observeValueForKeyPath:ofObject:context:] + 276
10 AppKit 0x00007fff922d24a8 -[NSSelectionBinder observeValueForKeyPath:ofObject:change:context:] + 340
11 AppKit 0x00007fff92133893 -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 758
12 AppKit 0x00007fff92583006 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1065
13 AppKit 0x00007fff92095055 loadNib + 384
14 AppKit 0x00007fff92603020 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 313
15 AppKit 0x00007fff92094725 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
16 AppKit 0x00007fff920944f1 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 344
17 AppKit 0x00007fff9208ff59 NSApplicationMain + 605
18 BLACK MASK 0x0000000100000f12 main + 98
19 libdyld.dylib 0x00007fff96bd05c9 start + 1
)
2014-10-22 10:38:31.698 BLACK MASK[13907:1081754] *** Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[<NSObject 0x60800001c950> valueForUndefinedKey:]: this class is not key value coding-compliant for the key theStatus.’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff954ed64c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8cd286de objc_exception_throw + 43
2 CoreFoundation 0x00007fff954ed1e9 -[NSException raise] + 9
3 Foundation 0x00007fff8dbdb5ed -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226
4 Foundation 0x00007fff8daf8e68 -[NSObject(NSKeyValueCoding) valueForKey:] + 385
5 Foundation 0x00007fff8db118e3 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 324
6 AppKit 0x00007fff9213ca0f -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 164
7 AppKit 0x00007fff92140850 -[NSValueBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] + 302
8 AppKit 0x00007fff922d29d8 -[NSSelectionBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] + 1313
9 AppKit 0x00007fff9214068b -[NSValueBinder _observeValueForKeyPath:ofObject:context:] + 276
10 AppKit 0x00007fff922d24a8 -[NSSelectionBinder observeValueForKeyPath:ofObject:change:context:] + 340
11 AppKit 0x00007fff92133893 -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 758
12 AppKit 0x00007fff92583006 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1065
13 AppKit 0x00007fff92095055 loadNib + 384
14 AppKit 0x00007fff92603020 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 313
15 AppKit 0x00007fff92094725 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
16 AppKit 0x00007fff920944f1 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 344
17 AppKit 0x00007fff9208ff59 NSApplicationMain + 605
18 BLACK MASK 0x0000000100000f12 main + 98
19 libdyld.dylib 0x00007fff96bd05c9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
and these
2014-10-22 10:38:31.326 BLACK MASK[13907:1081754] Loading script /Users/develop/Library/Developer/Xcode/DerivedData/BLACK_MASK-frztnzdbnpivmjbcsubgnkemqkjq/Build/Products/Debug/BLACK MASK.app/Contents/Resources/TwoUpHalmWideNonCMYKBackNEW-2.scpt failed; error -1702
AppleScript: Error while loading script, RefID doesn’t match. Expected 0, found 24948.
AppleScript: Too many RefID errors.
2014-10-22 10:38:31.326 BLACK MASK[13907:1081754] Loading script /Users/develop/Library/Developer/Xcode/DerivedData/BLACK_MASK-frztnzdbnpivmjbcsubgnkemqkjq/Build/Products/Debug/BLACK MASK.app/Contents/Resources/VOLUMECALCULATOR.scpt failed; error -1702
AppleScript: Error while loading script, RefID doesn’t match. Expected 0, found 24948.
AppleScript: Too many RefID errors.
2014-10-22 10:38:31.327 BLACK MASK[13907:1081754] Loading script /Users/develop/Library/Developer/Xcode/DerivedData/BLACK_MASK-frztnzdbnpivmjbcsubgnkemqkjq/Build/Products/Debug/BLACK MASK.app/Contents/Resources/WAGE TWIN-1.scpt failed; error -1702
Edit:
i’ve just seen this in the “h” file, I don’t no what this means, but it may help
#import <Cocoa/Cocoa.h>
#import <AppleScriptObjC/AppleScriptObjC.h>
int main(int argc, char *argv[])
{
[[NSBundle mainBundle] loadAppleScriptObjectiveCScripts];
return NSApplicationMain(argc, (const char **) argv); Thread 1: signal SIGABRT
}
StefanK
October 21, 2014, 9:51pm
#2
Hi,
according to the log the crash reason is a broken binding with key path theStatus
Budgie
October 21, 2014, 10:39pm
#3
excellent Stefan, thank you
since clearing that problem the others are coming thick and fast, like below, is there a replacement for “registerForDraggedTypes_” ?
Edit:
this is the part of the script that is generating the error
on awakeFromNib()
my mainWindow's registerForDraggedTypes_({"NSFilenamesPboardType"})
end awakeFromNib
Budgie
October 21, 2014, 11:37pm
#4
seems all of my connections to my buttons, drop boxes and text fields seem broken, yet the look like they are
all connected, iv’e disconnect some and reconnected, yet nothing happens when clicked, even done a clean and rebuild
ot connect the action MPILLY: to target of class NSObject
2014-10-22 12:34:31.606 BLACK MASK[21116:1870089] Could not connect the action Get100X210FFB: to target of class NSObject
Do you have a backup? It looks like maybe your .xib file is corrupted.
Budgie
October 22, 2014, 1:32am
#6
yeah, I do, thank god for that,
wow, a major world of panic here, I can tell you.
dropped in old versions of the xib, same problem, down graded to xcode 5.1.1, no change, changed operating systems
from 10.10 to 10.9.5 same issue, tried all sorts of variations, only the back up worked in all instances.
So I now have OSX 10.10, xcode 6.1 and a running build of my app, still a few errors that weren’t there before, but from what I figured out trying to fix all the issues before, I can go back and remedy a good deal of them … I hope
thanks both of you for your input
cheers