I was trying to add new images into my xcode project in order to make my app universal, adding images for iphone. When compiling, this is the error:
2013-02-26 08:58:35.585 XXXX[2132:707] cocos2d: Couldn't add XXXX-XXX.png in CCTextureCache
2013-02-26 08:58:35.598 XXXXX[2132:707] *** Assertion failure in -[MainMenuLayer addChild:], /Users/XXXX/XXXXX/XXXXX/XXXXX/XXXX/cocos2d/CCNode.m:362
2013-02-26 08:58:35.632 XXXXXX[2132:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Argument must be non-nil'
*** First throw call stack:
(0x336c68bf 0x301ba1e5 0x336c67b9 0x30f0d3b3 0x4abef 0xf6495 0x49279 0xcbc8d 0x49279 0xca7cd 0x6413d 0x6bd6b 0x98ff9 0x9a39b 0x34dab423 0x34dab379 0x31940f93 0x36c46891 0x3368ff43 0x3369a553 0x3369a4f5 0x33699343 0x3361c4dd 0x3361c3a5 0x37d8efcd 0x3107f743 0xc90fb 0x3df8)
terminate called throwing an exception
someone knows what happens?
The file name you specified is more than likely not the same as the actual filename. You will see this error if you try adding a file that xcode cannot find. Double check the file names and make sure that you have:
added the file to your project (File->Add Files to xxxx)
The file name of the file added is exactly the same as the file you
are trying to add to MainMenulayer (It is case sensitive)
You have also included the file extension (.png) in the code used to add the png to
MainMenuLayer
Related
My app works perfectly on the simulator, but as soon as I launch it on my physical device, I get this exception:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/containers/Bundle/Application/E1868188-8412-40F9-AD77-B4CA9DA47415/Aremiti.app> (loaded)' with name '0mX-RV-bpN-view-yyb-5A-n89''
*** First throw call stack:
(0x184b52fe0 0x1835b4538 0x184b52f28 0x18b18a600 0x18afeb2d4 0x18adb546c 0x18ad84c6c 0x18ac83b68 0x18ac83a9c 0x1000e5494 0x1000e34a4 0x1000e3524 0x18b18b8d8 0x18b2d9a50 0x18b2d9790 0x18b18b57c 0x18b18bd1c 0x18b2d9a50 0x18b2d9bc8 0x18b2d9790 0x18b18a8bc 0x18b444f54 0x18af08488 0x18acf4e94 0x18af070c4 0x18af1bd18 0x18af04474 0x1866fb884 0x1866fb6f0 0x1866fbaa0 0x184b0142c 0x184b00d9c 0x184afe9a8 0x184a2eda4 0x18acee384 0x18ace9058 0x1000f62b8 0x183a3d59c)
libc++abi.dylib: terminating with uncaught exception of type NSException
I am aware that this may be thrown when a file's name is changed outside of xcode. However, I haven't touched any of the file names.
let customView = Bundle.main.loadNibNamed("SomeNib", owner: self, options: nil)?[0] as! myClass
probability you NIB name is wrong you...please check your nib name which you made ..you should include SomeNib.xib in loadNibNamed
you should also have to check whether your SomeNib.xib copy into Copy Bundle Resources in Build Phases section of project target ?
I encountered similar error and the reason was that a subView to the current view (self.view.addSubView) was being added in the class's initializer method (when using a storyboard). Moving the code to viewDidLoad fixed it.
I am building a Newsstand universal app. When I download a magazine issue and open it, it runs fine, but when I delete it, redownload, and open it it throws the following:
2013-04-01 22:06:07.672 Magazine[14353:707] *** Assertion failure in -[ReaderContentPage initWithURL:page:password:], /Volumes/Files/Work in progress/el-beit/Magazine/Sources/ReaderContentPage.m:471
2013-04-01 22:06:07.680 Magazine[14353:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'CGPDFDocumentRef == NULL'
*** First throw call stack:
(0x35a4788f 0x3366b259 0x35a47789 0x34e3b3a3 0x84e59 0x85ba7 0x96d47 0x976ad 0x34e6d933 0x35a1ba33 0x35a1b699 0x35a1a26f 0x3599d4a5 0x3599d36d 0x33738439 0x33175cd5 0x6cf81 0x6cf08)
terminate called throwing an exception(lldb)
I delete the file by deleting its issue:
NKLibrary *nkLib = [NKLibrary sharedLibrary];
NKIssue *issue = [nkLib issueWithName:[kBaseFeatureID stringByAppendingString:((NSNumber *)self.listOfMonths[index]).stringValue]];
NSString *name = issue.name;
[nkLib removeIssue:issue];
[nkLib addIssueWithName:name date:[self.dateFormatter dateFromString:((NSNumber *)self.listOfMonths[index]).stringValue]];
I am using Newsstand, iOS6, Xcode 4.6, MKStoreKit, and the template of this project: https://github.com/vfr/Reader
The reader seems to be trying to open the deleted file instead of the file I give to it.
Any help would be appreciated, thanks in advance.
I solved this issue by using
[[ReaderDocument alloc] initWithFilePath:file password:nil];
instead of
[ReaderDocument withDocumentFilePath:file password:nil];
I think that this post could solve your problem.
I get the same error, but from a different Workflow. If I download a file and save it to the filesystem the error appears, but if I add the same file to my AppBundle it gets displayed without any problem.
I hope that this helps, eventually you have any advice whats wrong at my case. I suggest that this is because of the same reason.
The plist file was the problem, it didn't get deleted automatically when you deleted your PDF. You have to either make sure all your PDF file names are unique, or remember to delete the plist file which is automatically generated by the Reader based on PDF file name.
E.g. /appid/Library/Application Support/yourPdfFileName.plist
Do it every time when you delete your PDF. It should solve your problem.
When I follow this tutorial, it gives me an error on the [playercontroller release]; line, so I remove it, and then it gives me these errors when I try to run it.
I tried making another app to test the video, and it works seamlessly, but it will not work in my main app. Can anyone help?
And when I reimported the framework, and tried to play the video, it gives me this error:
2012-08-17 11:27:03.174 LYWAM Tour[768:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'
*** First throw call stack:
(0x1e15022 0x10fdcd6 0x1dbda48 0x1dbd9b9 0xba253b 0xba24c5 0x54ac 0x1e16e99 0x26314e 0x2630e6 0x309ade 0x309fa7 0x308d8a 0x2882cf 0x2885e6 0x26edc4 0x262634 0x16f7ef5 0x1de9195 0x1d4dff2 0x1d4c8da 0x1d4bd84 0x1d4bc9b 0x16f67d8 0x16f688a 0x260626 0x24cd 0x2435 0x1)
terminate called throwing an exception(lldb)
I take it GVE1ViewController is a class you wrote yourself? Does it definitely implement a method called GrommeVideoExcerpt1? Is what you assigned to the variable actually an instance of GVE1ViewController (or a subclass?) Put in an NSLog to check that it really is an instance of GVE1ViewController.
To do the NSLog, you need a line of the form:
NSLog(#" My controller = %#", myVar);
where myVar is whatever variable you have containing a reference to the GVE1ViewController.
I'm having trouble to use RegexKitLite to match string like
NSString *encodedPoints=[apiResponse stringByMatching: #"\\\"([^\\\"]*)\\\"^[^:]*"
capture: 0];
and apiResponse is:
#"http://maps.google.com/maps?output=dragdir&saddr=20.001364,73.749283&daddr=19.991499,73.744095"
So, to do by this way i am getting following error:
__NSCFString stringByMatching:capture:]: unrecognized selector sent to instance 0x131fc0
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString
stringByMatching:capture:]: unrecognized selector sent to instance
0x131fc0'
* First throw call stack: (0x3422b8bf 0x3447b1e5 0x3422eacb 0x3422d945 0x34188680 0xb97b 0xad2f 0xaa2d 0xa617 0x34185435
0x375ef9eb 0x376b53cf 0x34185435 0x375ef9eb 0x375ef9a7 0x375ef985
0x375ef6f5 0x375f002d 0x375ee50f 0x375edf01 0x375d44ed 0x375d3d2d
0x30a06df3 0x341ff553 0x341ff4f5 0x341fe343 0x341814dd 0x341813a5
0x30a05fcd 0x37602743 0x4571 0x2838)
I have trying to find solution with googling but not getting exact solution.
Please help...
Ensure you have the correct library included into your project.
Go to your Project Navigator and selet the project.
Click on the Target and select the Build Phases tab, and open the Link Binary With Libraries.
Press the + Button, and search for libicucore.A.dylib. Add this library to your project.
Next, you will need to add the compile source, which is in Compile Sources just above Link Binary With Libraries. Once again, hit the + button and add RegexKitLite.m to the target. If you attempt to build the project at this state, you should get a lot of errors in the RegexKitLite.m file. To correct this, add the following compiler flag to the file by double clicking the RegexKitLite.m file in the Compile Sources area and then including -fno-objc-arc into the pop-up that appears. Hit done, and you will have hopefully added the library source to your project.
Just as a note, -fno-objc-arc removes the Automatic Reference Counting while compiling that source file. The errors the file gets without that compiler flag have to do with ARC, so it solves the problem.
This solved my issues when working with RegexKitLite, so hopefully it will for you.
This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
i´m very new to xcode... a made an app (simple calculator) work´s pretty good (on simulator and device).
When i set the main interface in the summary options from Target, i get the following error when starting the simulator:
2012-04-14 12:17:27.123 CalcTest[27550:f803] * Terminating app due
to uncaught exception 'NSUnknownKeyException',
reason:
'[<UIApplication 0x6a14650> setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key calculatorScreen.'
* First throw call stack: (0x12db022 0x18f8cd6 0x12daee1 0xcc2022 0xc33f6b 0xc33edb 0xc4ed50 0x53671a 0x12dcdea 0x12467f1 0x53526e
0x536eb7 0x313ce1 0x313ff8 0x31317f 0x322183 0x322c38 0x316634
0x27fcef5 0x12af195 0x1213ff2 0x12128da 0x1211d84 0x1211c9b 0x312c65
0x314626 0x1bad 0x1b15 0x1) terminate called throwing an
exception(lldb)
to find the problem, i started a new view based project.
Run the empty new project on the simulator -->works,
But when I set the main interface, to ViewController, in the summary -->the Simulator crash with
2012-04-14 12:11:17.492 crash[27494:f803] * Terminating app due to uncaught
exception 'NSUnknownKeyException', reason:
'[<UIApplication 0x6a6f4b0> setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key view.'
* First throw call stack:
(0x13c7022 0x1558cd6 0x13c6ee1 0x9bf022 0x930f6b 0x930edb 0x94bd50
0x23371a 0x13c8dea 0x13327f1 0x23226e 0x233eb7 0x10ce1 0x10ff8 0x1017f
0x1f183 0x1fc38 0x13634 0x12b1ef5 0x139b195 0x12ffff2 0x12fe8da
0x12fdd84 0x12fdc9b 0xfc65 0x11626 0x1d4d 0x1cb5) terminate called
throwing an exception
is there a solution for the problem?
If you have a control in your nib (xib file) that is linked to a property (IBOutlet) or method (IBAction) in your view controller, and you have either deleted or renamed the property or method, the runtime can't find it because it has been renamed and therefore crashes.
In your case, you have set the Main Interface property of the project to your ViewController.nib. This is a problem because the only nibs that should be used as Main Interface should have UIWindows in them and the File Owner in that nib should be set to the AppDelegate. The UIWindow in the nib should be linked to the File Owner's (AppDelegate) window property. Because you set that with a nib without the traits the runtime was looking for, it gives you this error.
The solution is to leave the Main Interface blank as you do not have to set up UIWindows manually anymore.
Just had the same problem and fixed it by right Control-Clicking controls in the xib file to see referencing Outlets. Turned-out that some of the control were still referencing and older name and causing this error to happen.
if you get a message similar to:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason:
'[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
click the add (+) at the left bottom corner of the BreakPoint navigation area, choose 'add Exception Breakpoint', since it is crashing because of 'NSUnknownKeyException', and opt for 'All'. Run the program. The program stops at the first exception.
try this, select File's Owner then click on the "Connection Inspector" (upper on the top of right pane), you will see all the outlets. Look for any sign like this (!) you will find it on the small circle which indicates a missing outlet, all you have to do is linking it properly or remove the outlet.
Try this,
Go to Target=>Build Phases=>Compile Sources
Then include 'calculatorScreen.m'
I was facing the same problem. In my case i had renamed the text label in .h file. So there was multiple reference for that label in my main.storyboard file. Once i removed old reference my code started working.
Please check your target membership
select first option.this may help to others