HI
I have developed the application on with sqlite Database .when i run the application in simulator it works perfect but when i tested with device application gets crashes.
this is my code
* Assertion failure in -[sampleProjectAppDelegate copyDatabaseIfNeeded], /Users/xxxx/Desktop/new/sampleProject/Classes/sampleProjectAppDelegate.m:66
2010-07-29 05:52:40.141 sampleProject[259:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to create writable database file with message 'Operation could not be completed. Operation not permitted' .
2010-07-29 05:52:40.145 sampleProject[259:207] Stack: (
852041337,
861292157,
852040821,
850687039,
9253,
8563,
827154211,
827153345,
827464035,
827462369,
827460907,
819342131,
851590557,
851588321,
827151529,
827144691,
8423,
8348
)
terminate called after throwing an instance of 'NSException'
Program received signal: “SIGABRT”.
Thanks..
Related
I am trying to run Flutter Web, but I am getting the following error when running in release mode:
Uncaught TypeError: Cannot read properties of null (reading 'toString')
at Object.bm (main.dart.js:442)
at Object.aD8 (main.dart.js:75)
at main.dart.js:7583
at aeF.a (main.dart.js:5177)
at aeF.$2 (main.dart.js:32691)
at Object.F (main.dart.js:5163)
at Object.tA (main.dart.js:7601)
at Object.aDT (main.dart.js:7578)
at main.dart.js:20403
at aeF.a (main.dart.js:5177)
and the following error when running in debug mode:
Uncaught TypeError: Cannot read properties of null (reading 'append')
at main.dart.js:65
The same thing happens when running the app in debug mode.
The app works when running on mobile.
Android Studio 4 + Flutter project
Success launch my flutter's project on Android device.
Nice. But on iPhone device I get error:
*** Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreLocationFramework/CoreLocation-1861.3.25.50/Framework/CoreLocation/CLLocationManager.m:609
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)'
*** First throw call stack:
When I run my app for the first time, it works perfectly fine. The second time I try to open the app It gives me this Error: "Terminating app due to uncaught exception 'NSInvalidArgumentException'
I have macOS Mojave (10.14.3).I am running my iOS application on Xcode 10.3. My swift version is 4.
This is the Complete error Error Message:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FIRInstanceIDTokenInfo isFresh]: unrecognized selector sent to instance 0x172c6cb40
I am guessing the second time I run the app, it cannot connects to the Database. But it's just my guess, I cannot really test it.
How do i solve this error?
2016-08-30 09:14:55.856 BBS[476:159483] -[MosquittoClient initWithClientId:]: unrecognized selector sent to instance 0x15e3ba60
2016-08-30 09:14:55.859 BBS[476:159483] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'-[MosquittoClient initWithClientId:]: unrecognized selector sent to
instance 0x15e3ba60'
*** First throw call stack:
(0x21d19b0b 0x214d6dff 0x21d1f455 0x21d1d0ab 0x21c47298 0xaeec8 0xaedb8 0xae484 0xae570 0x2632a6a1 0x2632a631 0x2631256b 0x26329f51
0x26329bbf 0x26322547 0x262f2dd5 0x262f1379 0x21cdb9e7 0x21cdb5d7
0x21cd993f 0x21c281c9 0x21c27fbd 0x23244af9 0x2635b435 0xaf8e8
0x218d4873)
libc++abi.dylib: terminating with uncaught exception of type NSException
FYI: I have a project that is using Mosquitto library and it is working. However when i copy the original source code to another Mac for distribution or when i create a new project and integrate Mosquitto library into it, the error appear.
client = MosquittoClient(clientId: "client1") <-- Line that causes the error
client?.delegate = self
client?.port = 1883
client?.host = "someIPAddress"
client?.connect()
Do not hard code client IDs, they need to be different for every instance connected to the broker.
I heard about the Nextpeer SDK and started to integrate in my current app. However, it gives me an error. I am unable to resolve the error.
The error states:
-[UIDevice npGetiOSVersion]: unrecognized selector sent to instance 0x9e62370
***Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIDevice npGetiOSVersion]: unrecognized selector sent to instance 0x9e62370'