App Crashes after Project and Scheme Renames Xcode 8 Swift 2.3 - ios

After renaming my Xcode project, scheme, and target, my app crashes at the App Delegate when running in simulator. It should be noted that the app could be run successfully, without any errors, prior to the rename. I have attempted all manner of fixes including editing the project.pbxproj file, all to no avail. The app crashes with an "libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)" error at Thread 1 main.
Any assistance solving the problem would be greatly appreciated.

Related

Error when running app from Xcode Version 8.3.3 (8E3004b)

When running the app from Xcode Version 9.0 beta 4 (9M189t), everything works fine. But when I run the same code on Xcode Version 8.3.3 (8E3004b), the app crashes with this message:
PagerTabViewController in Interface Builder file.
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x12e51aac0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key leftBarButtonItem.'
On interface builder I can see that 'leftBarButtonItem' is correctly linked with the button.
The connection inspector shows this:
It doesn't show problem on 'leftBarButtonItem', but yes it shows problems for 'buttonBarView' and 'containerView'.
These two items are from pod XLPagerTabStrip. These two items must be connected in interface builder in order to work. I don't know if my problem is related with this pod, but it's weird these connections shows problems. As I said, on Xcode 9.0 it shows correctly and runs without errors. I tried to disconnect these two views and connect again, but when I do it the interface builder don't let me connect it again.
I'm completely lost with this problem. I need to use Xcode 8.3.3 in order to upload a binary to App Store.
Xcode 9.0 uses Swift 4 as compiler while Xcode 8.3.3 uses Swift 3.1. I also don't know if this is the problem.
Any idea about what is happening? Thanks

On Demand Resources crash - NSBundle Resource Request could not connect to its helper daemon

Getting a crash for using ODR(on demand resources) on iOS app with this description -
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'NSBundleResourceRequest
could not connect to its helper daemon
iOS Version common among crashes - 10.3.2
I'm seeing crashes in Crashlytics and am unable to reproduce this in debug mode without calling private methods. I have images and sound files included in my ODRs. Attaching the stack trace screen shot as well - ScreenShotofStackTrace
I am also calling -[NSBundleResourceRequest conditionallyBeginAccessingResourcesWithCompletionHandler:] from within a dispatch_after block. Could this be the culprit?
Any leads would be greatly appreciated!
In my case, closing Xcode, deleting files in the DerivedData folder, restarting Xcode, cleaning the project, and deleting the program from the simulator/device solved this problem.

React native app crashes when release mode set in Xcode

RN version: 0.32.0
Application runs OK when in debug mode but crashes when release mode set in Xcode. Error message is not clear:
libc++abi.dylib: terminating with uncaught exception of type
NSException
What should I do? How to diagnose this problem? Any solution?
I have experienced this behavior when a component was given twice the same prop. Like in
<Comp propname={"a"} propname={"b"}/>
This is just a possibility, though and I don't know if it is still happening in RN 0.32. Does it run when you run it in debug mode and debug in Chrome? This was how I found my issue.
Try identifying which component is responsible for it by removing them one by one.

cocos2d errors when changing iOS target

I have an iOS app which has been using cocos2dx. The app works fine when the app and the cocos library both target iOS 6 but when I change it to 7 or 8 i suddenly get this error appearing.
libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: basic_string
Why does this appear all of a sudden
This is most likely a crash in your code, iterating over a string and accessing out of bounds.
Try debugging your application in XCode and adding a breakpoint for all exceptions:
http://blog.manbolo.com/2012/01/23/xcode-tips-1-break-on-exceptions
You can then follow the call stack up into the offending code.

Random iOS CloudKit crashes during development

My app uses CloudKit and includes the following line of very basic of code:
self.cloudContainer = CKContainer.defaultContainer()
During development and debugging with Xcode, it will randomly crash on that line of code with the following exception:
*** Terminating app due to uncaught exception 'CKException', reason: 'The application is missing required entitlement com.apple.developer.icloud-services'
If I just run it again from Xcode with no changes, it may run fine or it will crash again.
I've filed a radar on the problem and, as requested by Apple, sent them my .entitlements file and crash logs. They've said the entitlements look fine but no response on a solution or workaround.
Has anyone else seen this or have a suggestion to get around it? It really makes CloudKit development difficult.

Resources