How to fix sqlite3 libversion mismatch - ios

I just updated to the latest Xcode, version 6.2 and started seeing this error when running my app.
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: sqlite3 libversion mismatch: headers report 3007013, but library reports 3008005
The error shows up running in the simulator using iOS 8.2, but works fine in iOS 8.1. My app includes libsqlite3.dylib from Apple.
Any suggestions on the cause or how to resolve?

Looks like an issue with MapboxGL and ios 8.2 as described here:
https://github.com/mapbox/mapbox-gl-native/issues/968
This looks like the version check in question:
https://github.com/mapbox/mapbox-gl-native/blob/b56b618abf0b15025b61ab96dcc873cf7af82450/platform/default/sqlite3.cpp

Related

unable to find bundle named STKAudioKit_STK

I am working on an app, which works without any issue with AudioKit 5.0 (v5-main branch), now with the new version (5.2.0) split in multiple modules, I have added the 3 modules as shown bellow. I get the below error when running the app :
*** Terminating app due to uncaught exception 'SwiftPMResourcesAccessor', reason: 'unable to find bundle named STKAudioKit_STK'
I am using Xcode 12.5.1
packages and error
AudioKit cookbook compiles and runs perfectly and I can use the flute recipe which seem to rely on the STK also.
Any idea how to fix this error ?
It is fixed now but I guess this is due to a typo in the AudioKit STK :
NSString *bundleName = #"STKAudioKit_STK";
should be :
NSString *bundleName = #"STKAudioKit_Stk";
after making this change it works.

Could not find module 'IQKeyboardManagerSwift' for target 'armv7-apple-ios';

I'm getting this crash at a few places through my app which seems to be triggered by IQKeyboardManagerSwift. I get this error in my AppDelegate.swift file on line 10 which is just
`import IQKeyboardManagerSwift. It was all working fine before I updated to the latest version of Swift, howver all my dependencies are up to date. Including IQKeyboardManagerSwift. Has anyone seen a message like this before?
Could not find module 'IQKeyboardManagerSwift' for target
'armv7-apple-ios'; found: arm64, arm64-apple-ios
In the console I also get this message.
Terminating app due to uncaught exception
'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate
class named _UITextLayoutView because no class named _UITextLayoutView
was found; the class needs to be defined in source code or linked in
from a library (ensure the class is part of the correct target)'
This is a known bug in Xcode 11.2
See:
After upgrading to Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView
You can either download an older Xcode version from here: https://developer.apple.com/download/more/
or upgrade to the newly released 11.2.1 (I haven't tried that one yet)

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

App began to crash on iOS 9.1 Beta 2

The application began to crash when installing on iOS 9.1 Beta 2. Exactly same binary (downloaded from hudson link) behaves so:
It did not crash on iOS 9.0 and iOS 9.0.1
It did not crash on either iOS 8
I have extracted the crash log, crash happens inside the call to [[NSBundle mainBundle] loadNibNamed:#"NameOfView" owner:self options:nil];. The crash itself is NSUnknownKeyException:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[< NameOfView: 0x1446a6ea0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key .'
So far i see weird key '.' which nib loading mechanism tries to set on my class, and obviously, such is not present in nib. And this looks extraweird even more, due to iOS 9.1 beta 2 is the only version with this behaviour. Moreover, building app with XCode 7 from on same git revision gives no success crashing app - it works as expected. Has anybody experienced such behaviour after trying your release versions on iOS 9.0.1 beta 2? Want to have some feedbacks of SO community before file a bug to radar. Appreciate your help, guys.
P.S. I'd like to emphasize that the issue reproduces only on that particular binary. Building it again from the same sources in XCode 7 doesn't produce a crash. So please, don't suggest how to debug such kind of problem, how to set exception breakpoint etc.
EDIT
Since 9.1 release, it's no more reproducible.
As stated in comment to original question, there's no solution and no response on bug yet.
The openradar link: http://openradar.appspot.com/radar?id=6294934587965440
I'll be posting an updates here after the 9.1 release.
There are some empiric ways to come up with solution:
Override KVC setter setValue:forKey: and forbid empty string
key.
Use always the latest stable SDK to build.
But again, no actual response from Apple neither.
EDIT Since 9.1 release, it's no more reproducible.

Xcode 5.0.1 crashes after Run

Good day! I have strange problem with Xcode 5.0.1. When I'm trying to run the app - it crashes with the following exception: UNCAUGHT EXCEPTION (NSInvalidArgumentException): must provide a file handle or pipe
I have also reinstalled Xcode (from the app store) and I have still obtained the same result.
I had this problem when updating from 5.0.0 to 5.0.1. The fix was that I was using 10.9 DP1. Now having 10.9, the final version and a fresh xcode install, it ran fine.
i have facing same problem but with little change resolve my issues.
Change littile syntex like as show below
-(void)SelectBg;
change to
-(void)SelectBg:(id)sender;
Thanks and happy coding

Resources