App crashes on iPad simulator - ios

I am building a universal app. App is working fine for iPhone 5 and iPhone 4(different storyboard) but it crashes when trying to run it for iPad 6.1
This is the error:
-[AccountTableViewController topViewController]: unrecognized selector sent to instance 0xab52620
2013-08-19 21:13:35.527 [6871:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AccountTableViewController topViewController]: unrecognized selector sent to instance 0xab52620'
*** First throw call stack:
(0x2131012 0x1c26e7e 0x21bc4bd 0x2120bbc 0x212094e 0x2c1a 0xb68157 0xb68747 0xb6994b 0xb7acb5 0xb7bbeb 0xb6d698 0x2b10df9 0x2b10ad0 0x20a6bf5 0x20a6962 0x20d7bb6 0x20d6f44 0x20d6e1b 0xb6917a 0xb6affc 0x252d 0x2455)
libc++abi.dylib: terminate called throwing an exception

You are calling a UINavigationController method topViewController on a UITableView instance AccountTableViewController.
Without code, it's a little difficult to be more specific, but maybe you want to be calling this method on the UITableView's navigation controller?

Related

When Navigate to the specific UIViewcontroller across any event the App is Crashing in iOS 11 only

When I Navigate the specific UITableView called "InvoiceViewController" from HomeViewController by didSelectRowAtIndexPath and from "TimerViewController" by sliding Slider Action. App Crashing and the compiler, throwing following error.
2017-10-30 14:57:25.181311+0400 FixtrProvider[3667:1496216] desc: -[UIView adjustedContentInset]: unrecognized selector sent to instance 0x102d16010
2017-10-30 14:57:25.181369+0400 FixtrProvider[3667:1496216] name: NSInvalidArgumentException
2017-10-30 14:57:25.181402+0400 FixtrProvider[3667:1496216] user info: (null)
2017-10-30 14:57:25.181466+0400 FixtrProvider[3667:1496216] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView adjustedContentInset]: unrecognized selector sent to instance 0x102d16010'
*** First throw call stack:
(0x18575fd38 0x184c74528 0x18576d1f8 0x18ef27cc4 0x1857656e4 0x18564b0dc 0x18eefe628 0x18eefe3f0 0x18eefdbc0 0x18eefd8f0 0x18ec18964 0x18ecf4e48 0x18ec16e04 0x18ec16a34 0x18ec1695c 0x18eb6d000 0x18973d0b4 0x189741194 0x1896aff24 0x1896d6340 0x18eb62884 0x1857078b8 0x185705270 0x18570582c 0x1856262d8 0x1874b7f84 0x18ebd3880 0x100e6a47c 0x18514a56c)
libc++abi.dylib: terminating with uncaught exception of type NSException
Properties of the invoiceViewController
Please help me to find out the issue that caused only in iOS 11 devices.
Try to rename contentScrollView in line 28 to another name or remove outlet.

Error in creating Segue in Interface builder in Xcode 9

I am trying to compile my code in Xcode 9 which was perfectly working in Xcode 8.3, now it crashes on Segue from table view to uiviewcontroller.
This is the error message.
2017-10-11 10:44:36.410414-0500 Dev_TenantMoveIn[307:18597] -[PDFViewController initWithCoder:]: unrecognized selector sent to instance 0x1c80111d0
2017-10-11 10:44:36.412182-0500 Dev_TenantMoveIn[307:18597] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PDFViewController initWithCoder:]: unrecognized selector sent to instance 0x1c80111d0'
*** First throw call stack:
(0x186a0fd38 ........ 0x1863fa56c)
libc++abi.dylib: terminating with uncaught exception of type NSException
Any suggestion would be helpful

[__NSConcreteURLComponents queryItems]: unrecognized selector

I'm getting this error trying to run a bare project from the react-native init command, on an iOS 7.1 device.
This works on the iOS simulator, so I wonder if its an iOS compatibility issue?
The Movies example app works ok on this device.
```
2016-01-08 16:34:33.224 CouchTest[1210:60b] -[__NSConcreteURLComponents queryItems]: unrecognized selector sent to instance 0x14dacc10
2016-01-08 16:34:33.226 CouchTest[1210:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSConcreteURLComponents queryItems]: unrecognized selector sent to instance 0x14dacc10'
* First throw call stack:
(0x2edb0f83 0x39561ccf 0x2edb4917 0x2edb3203 0x2ed02768 0x10abaf 0xb47a1 0xb1735 0xb0c8b 0x39a49833 0x39a4981f 0x39a49777 0x2ed7b8a1 0x2ed7a175 0x2ece4ebf 0x2ece4ca3 0x33bea663 0x3163114d 0x9780d 0x39a6eab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
```
NSURLComponents queryItems is only available on iOS8+
That's why you are seeing the crash.
See the docs here for more info: https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSURLComponents_class/index.html#//apple_ref/occ/instp/NSURLComponents/queryItems
Setting an exception breakpoint will show you which class/method is making that call. Otherwise, it sounds like react-native is calling queryItems when it shouldn't.

Connecting ViewController causes SpriteKit to terminate app

I have a SpriteKit game, but now I'm working on making a menu. I decided to try to make these menus in a normal way, using Storyboards and UIViewControllers.
However, this is proving to be very difficult.
I added a new UIViewController, and set it as the initial viewcontroller. This causes no problems. However, as soon as I hook this up to a completely basic UIViewController file (FirstMenuViewController.m), with no edits or additions, ViewController.m seems to freeze up at if(!skView.scene){.
I'm getting this error:
-[UIView scene]: unrecognized selector sent to instance 0x170164980
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView scene]: unrecognized selector sent to instance 0x170164980'
*** First throw call stack:
(0x187f7f100 0x1944881fc 0x187f83db4 0x187f81ae0 0x187ea178c 0x1001012ec 0x18af42f90
....
libc++abi.dylib: terminating with uncaught exception of type NSException
What I don't get is why ViewController.m is even called, as there is no connection to that file from my FirstMenuViewController which is set as the initial viewcontroller.
Could someone please explain to me what is going on here?
Turns out I was subclassing the ViewController supplied by the SpriteKit-template instead of UIViewController when creating my FirstMenuViewController

Chartboost latest iOS SDK crashes when using example code

My iOS game is crashing when using Chartboost, but this wasn't happening 2 days ago, it worked fine then and I haven't changed anything.
I am doing the following:
[Chartboost startWithAppId:#"<<AppID>>" appSignature:#"<<Signature>>" delegate:self];
[[Chartboost sharedChartboost] showInterstitial:CBLocationHomeScreen];
I have removed the AppID and Signature for security reasons, but in my code they are the correct values
This crashes with the error:
2014-06-13 10:09:53.655 3D Line[7903:890b] -[__NSArrayI objectForKey:]: unrecognized selector sent to instance 0x17801e200
2014-06-13 10:09:53.684 3D Line[7903:890b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI objectForKey:]: unrecognized selector sent to instance 0x17801e200'
*** First throw call stack:
(0x18324af50 0x18f7541fc 0x18324fc04 0x18324d930 0x18316d5dc 0x1001dcf14 0x1001cc430 0x1001cecd0 0x1001cf0d4 0x18fd2c014 0x18fd2bfd4 0x18fd31654 0x18fd2bfd4 0x18fd332b8 0x18fd334fc 0x18fec16bc 0x18fec154c)
libc++abi.dylib: terminating with uncaught exception of type NSException
I think it is to do with the JSON sent back from Chartboost. Is this happening for anyone else?
We just released a live fix for this. You do not have to update your SDK to get the fix, it's already there :)

Resources