cordova iosrtc app crash on iphone device - 'NSInternalInconsistencyException - swift

i have an app crash issue on ios real device
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Call must be made on main thread'
terminating with uncaught exception of type NSException
Apple macOS: 11.6.6 Big Sur Xcode: 13.2.1 ios-deploy: 1.11.4
CocoaPods: 1.11.3 cordova : 11.0.0 cordova-platform-ios : 6.2.0
webrtc-adapter-version : 8.1.1

This issue was created by using some deprecated plugins, so remove the deprecated plugin and find alternative sources.

Related

XCode 12 Preview Crashes when adding Firebase SDK Swift UI 2.0

Since the last Xcode update to 12.0.1 SwiftUI previews crashes when is added to the project.
The crash log hints that the problem is located in the firebase sdk, more specific the
GoogleDataTransport/GDTCORLibrary
System Integrity Protection: enabled
Crashed Thread: 3 Dispatch queue: com.google.GDTCORFlatFileStorage
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:]: URL is nil'
terminating with uncaught exception of type NSException
Firebase (6.33) is integrated via cocoapods (1.10.0.rc.1) with
Xcode 12.0.1 on Catalina 10.15.7
There is an open issue on github
Someone found a solution or workaround for this?
Downgrading GoogleDataTransport from 7.4.0 to 7.3.0 does the trick however If you use Firebase 6.33.0 downgrading will not work because version GoogleDataTransport 7.4 version was locked in Firebase Core podspec. According to crash report Preview crashes in AppDelegate FirebaseApp.configure(), so if Firebase functionality isn't required in DEBUG it might be excluded with macros:
#if RELEASE
FirebaseApp.configure()
#endif
Downgrading GoogleDataTransport from 7.4.0 to 7.3.0 fixes the problem
=> pod 'GoogleDataTransport', '7.3.0'

Ios app crash after install background mode(latest version)

ionic app crash in ios version 12.2 after install background mode(latest version). i am also updated background Mode from git but app crash initially.
Below Exception when app initialized
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]
: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.'
My confilg.xml below
<plugin name="cordova-plugin-background-mode" spec="https://github.com/tushe/cordova-plugin-background-mode.git" />
My package.json below
"cordova-plugin-background-mode": "git+https://github.com/tushe/cordova-plugin-background-mode.git",
I am also try to different solution
1- forKey:#"requiresUserActionForMediaPlayback"];
2-

Ionic Deploy Cannot Find ZIP

Ionic Deploy has been working perfectly up until this week. It will find an update but it does not apply it. I recently setup deploy manually following the Pro documentation and these are the errors I get on an Android emulator.
ERROR Error: Uncaught (in promise): /data/user/0/app.identifier/files/www.zip (No such file or directory)
ERROR Error: Uncaught (in promise): Unexpected end of ZLIB input stream
ERROR Error: Uncaught (in promise): error in opening zip file
If anyone can help I will be extremely grateful.
Thanks!

Application crashes if we compile in Xcode 9

Application started crashing on device when we build application from Xcode 9, the application is working fine on the simulator but crashes on the device. Below are the device crash logs
Crash logs
Sep 22 18:57:33 iPhone ReportCrash(CrashReporterSupport)[324] <Notice>:
Process: Checkout [323]
Path:
/private/var/containers/Bundle/Application/13FD366C-4D41-4BC9-B958-
151CDC9E62F3/Checkout.app/Checkout
OS Version: iPhone OS 10.3.3 (14G60)
Sep 22 18:57:33 iPhone ReportCrash(CrashReporterSupport)[324] <Notice>:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded:
#rpath/libclang_rt.ubsan_ios_dynamic.dylib | Referenced from:
/private/var/containers/Bundle/Application/13FD366C-4D41-4BC9-B958-
151CDC9E62F3/Checkout.app/Frameworks/Valid.framework/Base | Reason:
image not found
Embed swift library flag is true and application successfully compiled on machine its crashing as soon as we launch app on device.

Unity Ads Xcode 6.3.1 setUnityVersion crash

I'm using the last version of UnityAds 1.1.4 with Unity 4.6.4f1. I have upgraded to Xcode 6.3.1 and I can build IOS version but when I'm running the game on the device I get the error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UnityAds setUnityVersion:]: unrecognized selector sent to instance 0x1c19f6d0'
This appears in UnityAdsUnityWrapper.m at line : [[UnityAds sharedInstance] setUnityVersion:unityVersion];
Everything was working before Xcode update and Unityads update
Unity Ads dev here. This is probably caused by a problem when upgrading the asset store package. You should remove all Unity Ads related files from your Unity project and reimport the package.
I had the same issue, this worked for me:
Search project with 'UnityAds' and delete every asset that is found
Delete Plugins/iOS/DeviceInfo.framework
Delete Editor/PostprocessBuildPlayer_DeviceInfo
Re-import newest version of UnityAds
I'm using XCode 6.3.1 & Unity 4.6.3f1