I'm working on an iPhone app that uses RSS.
When I scroll my UITableView, if I bounce it to the bottom too much, my app crashes and I get __TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION__.
Here is my code:
http://pages.stern.nyu.edu/~abc329/SS/
Here is the error I get:
warning: Unable to read symbols for
"/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
warning: Unable to read symbols from
"UIKit" (not yet mapped into memory).
warning: Unable to read symbols for
"/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
warning: Unable to read symbols from
"CoreGraphics" (not yet mapped into memory).
Program loaded.
sharedlibrary apply-load-rules all
Attaching to program: `/Users/abc329/Library/Application Support/
iPhone Simulator/User/Applications/
D1B397C8-9464-4979-9F12-4302A502680E/
street-spotted.app/street-spotted', process 18528.
(gdb)
Related
I can successfully run my app in IOS 8 but in IOS 7, my app crashes.
The message is:
dyld: Library not loaded: /System/Library/Frameworks/LocalAuthentication.framework/LocalAuthentication
Referenced from: /Users/burakkilic/Library/Developer/CoreSimulator/Devices/A0210158-BC6C-43AA-9D85-AA8DE6115AAA/data/Applications/xxx
Reason: no suitable image found. Did find:
/System/Library/Frameworks/LocalAuthentication.framework/LocalAuthentication: mach-o, but wrong architecture
How can I solve it?
You could weak link LocalAuthentication.framework and conditionally access the LocalAuthentication API at runtime.
The latter can be done by either:
Checking the iOS version you are running.
Using reflection to test for the presence of API methods (respondsToSelector, et al).
My app crashes on some iPhone 5S device (only some) with the error:
Fatal Exception: NSInternalInconsistencyException Unexpected error:
Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be
completed. (Cocoa error 4097.)" (connection to service named
com.apple.CoreAuthentication.daemon) UserInfo=0x174461dc0
{NSDebugDescription=connection to service named
com.apple.CoreAuthentication.daemon}
The line which breaks the app is the following:
LAContext().canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: nil)
Is this an Apple bug?
What am I doing wrong here?
It's an iOS bug. When an API returns a 4097 error, it usually means that the system daemon that was responsible for handling your request crashed. You can look for crash logs from the device and file a bug with Apple.
When I call save on the Core Data managed object context while running the application in the simulator (iOS 5.1.1, XCode 4.4.1) I get two of the following validation errors:
Error Domain=CollectionItemError Code=0 "The operation couldn’t be completed. (CollectionItemError error 0.)"
Since there is an error code of zero (0) I'm not sure how to debug the problem. Suggestions?
Not sure what this is about... dns.so?
(I only have this problem on the iPod device... but the simulator works fine.)
This WARNING(NSLog) shows on installing the app on the iPod:
warning: Unable to read symbols for /Users/xxxxxx/Library/Developer/Xcode/iOS DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
warning: No copy of dns.so found locally, reading from memory on remote device. This may slow down the debug session.
This ERROR(NSLog) shows up with the app running on the iPod:
2012-01-09 18:32:12.071 PlotData[868:307] Received memory warning. Level=1
2012-01-09 18:32:18.256 PlotData[868:307] Received memory warning. Level=2
Then the app crashes out... and sometimes locks the iPod entirely.
I'm trying to add some UnitTests to a bunch of Cocoa Legacy code.
I created a Unit Test Bundle, and added all source and frameworks needed, but the build fails with this message:
2010-08-26 16:07:18.074 otest-x86_64[64675:903] The test bundle at
/Users/giordano/application/build/Release/UnitTest.octest
could not be loaded because its Objective-C runtime information does not match
the runtime information required by the test rig. This is likely because the
test rig is being run with Objective-C garbage collection disabled, but the
test bundle requires Objective-C garbage collection. To enable Objective-C
garbage collection for the test rig, run it in an environment without the
OBJC_DISABLE_GC environment variable.
I tried to enable garbage collector, but another error appears:
2010-08-26 16:38:28.824 otest-x86_64[71383:903] The test bundle at
/Users/giordano/work/CleanCode/Pomodori.st/desktop/Osx/pomodoro-
buildfix/pomodoro/build/Release/UnitTest.octest could not be loaded
because an unanticipated error occurred: Error Domain=NSCocoaErrorDomain
Code=3587 UserInfo=0x20002a640 "The bundle “UnitTest.octest” couldn’t be
loaded because it is damaged or missing necessary resources."
(dlopen_preflight(/Users/giordano/application/build/Release/UnitTest.octest/Contents/MacOS/UnitTest): Library not loaded:
#loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle
Referenced from:
/Users/giordano/application/build/Release/UnitTest.octest/Contents/MacOS/UnitTest
Reason: no suitable image found. Did find:
/Users/giordano/application/build/Release/UnitTest.octest/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/A/Sparkle:
GC capability mismatch
/Users/giordano/application/build/Release/UnitTest.octest/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/A/Sparkle:
GC capability mismatch)
I wonder if it's possible to force Unit Test to run without Garbage Collection:
Any clue?
The sparkle framework needs to built GC enabled.