I have a function that computes MD5 hash of a file:
func ComputeMD5(ofFile path: String) -> [UInt8]? {
if let data = try? Data(contentsOf: URL(fileURLWithPath: path)) {
var digest = [UInt8](repeating: 0, count: 16)
data.withUnsafeBytes {
_ = CC_MD5($0.baseAddress, UInt32(data.count), &digest)
}
return digest
}
return nil
}
Now I wonder/worry what happens if the file is very huge. Does the runtime perform disk memory paging?
Objective-C
RSS for tagObjective-C is a programming language for writing iOS, iPad OS, and macOS apps.
Posts under Objective-C tag
200 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
Hi, I'm receiving an incorrect returning state from SKPaymentTransaction.
I have a subscription plan that users can purchase and have access to new features in my app, but, for some reason, even if it's a new app account or new appstore account, when it reaches the SKPaymentTransaction.TransactionState, it always says that the state is SKPaymentTransactionStatePurchased.
This code haven't been changed since 2018 and this error started about 1 week ago.
This is the full code:
- (void)createPaymentWithProduct:(SKProduct *)product {
SKMutablePayment *payment = [SKMutablePayment paymentWithProduct:product];
payment.quantity = 1;
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
[[SKPaymentQueue defaultQueue] addPayment:payment];
}
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions {
for (SKPaymentTransaction *transaction in transactions) {
switch (transaction.transactionState) {
// Call the appropriate custom method for the transaction state.
case SKPaymentTransactionStatePurchasing:
[self purchasingTransaction:transaction];
break;
case SKPaymentTransactionStateDeferred:
[self failedTransaction:transaction];
break;
case SKPaymentTransactionStateFailed:
[self failedTransaction:transaction];
break;
case SKPaymentTransactionStatePurchased: {
//It reaches this case but never reaches Purchasing
[self purchasedTransaction:transaction];
break;
}
case SKPaymentTransactionStateRestored:
[self restoredTransaction:transaction];
break;
default:
// For debugging
NSLog(@"Unexpected transaction state %@", @(transaction.transactionState));
[self failedTransaction:transaction];
break;
}
}
}
After the queue, it calls this functions that ask for the payment receipt, which returns me an error because it's not purchased, so it doesn't have a receipt.
- (void)purchasedTransaction:(SKPaymentTransaction *)transaction {
[self sendReceiptToServerForTransaction:transaction];
if (self.purchasedNotification) {
self.purchasedNotification();
}
}
Accessibility is disabled for tableview cell but it is getting selected.Tableview cell is added as a subview to a view and its accessibility is also disabled.The accessibility value is coming as empty string instead of nil.Imageview is placed inside the tableview cell for that also the accessibility is disabled, still it is getting selected for the cell.Attached the view hierarchy of tableviewcell
Sample code:
BOOL voiceAccessibility = [screenDelegate getApplicationHasVoiceAccessibility];
if (voiceAccessibility) {
if (accEnabled)
{
[self setIsAccessibilityElement:YES];
if (accLable != nil && accLable.length >0)
[self setAccessibilityLabel:accLable];
}
else
{
[self setIsAccessibilityElement:NO];
self.accessibilityTraits = UIAccessibilityTraitNone;
}
}
Alternative Code tried:
-(NSString *)accessibilityLabel{
if([m_acclabel isEqualToString:@""] || m_acclabel == nil ||
m_acclabel.length == 0){
return nil;
}
return m_acclabel;
}
Accessibility Inspector Hierarchy:
PDF is successfully open in UIDocumentInteractionController but when I tap on share > Print button then app crashes only in iOS 17.0.3 (not tried in iOS 17).
It is working fine in iOS 15.8.
Crash report
"termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"PocketRetail","byPid":341},
"ktriageinfo" : "VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter\nVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter\nVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter\nVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter\nVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter\n",
"asi" : {"libsystem_c.dylib":["abort() called"]},
"lastExceptionBacktrace" : [{"imageOffset":972256,"symbol":"__exceptionPreprocess","symbolLocation":164,"imageIndex":22},{"imageOffset":179200,"symbol":"objc_exception_throw","symbolLocation":60,"imageIndex":20},{"imageOffset":1516452,"symbol":"-[NSException initWithCoder:]","symbolLocation":0,"imageIndex":22},{"imageOffset":80840,"symbol":"-[UIViewController __supportedInterfaceOrientations]","symbolLocation":808,"imageIndex":24},{"imageOffset":7131796,"symbol":"-[_UIFullscreenPresentationController _prepareForMixedOrientationTransitionIfNecessaryInWindow:fromViewController:toViewController:]","symbolLocation":448,"imageIndex":24},{"imageOffset":7131100,"symbol":"-[_UIFullscreenPresentationController _adjustOrientationIfNecessaryInWindow:forViewController:preservingViewController:]","symbolLocation":932,"imageIndex":24},{"imageOffset":562208,"symbol":"-[UIPresentationController _presentWithAnimationController:inWindow:interactionController:target:didFinish:]","symbolLocation":524,"imageIndex":24},{"imageOffset":7825936,"symbol":"-[UIViewController _presentViewController:modalSourceViewController:presentationController:animationController:interactionController:completion:]","symbolLocation":1156,"imageIndex":24},{"imageOffset":7836224,"symbol":"-[UIViewController _presentViewController:withAnimationController:completion:]","symbolLocation":3284,"imageIndex":24},{"imageOffset":7838832,"symbol":"__63-[UIViewController _presentViewController:animated:completion:]_block_invoke","symbolLocation":92,"imageIndex":24},{"imageOffset":7839596,"symbol":"-[UIViewController _performCoordinatedPresentOrDismiss:animated:]","symbolLocation":484,"imageIndex":24},{"imageOffset":7838680,"symbol":"-[UIViewController _presentViewController:animated:completion:]","symbolLocation":188,"imageIndex":24},{"imageOffset":7839784,"symbol":"-[UIViewController presentViewController:animated:completion:]","symbolLocation":164,"imageIndex":24},{"imageOffset":299640,"symbol":"-[UIPrintPanelViewController presentPrintPanelAnimated:hostingScene:]","symbolLocation":944,"imageIndex":31},{"imageOffset":25464,"symbol":"__80-[UIPrintInteractionController _presentAnimated:hostingScene:completionHandler:]_block_invoke_2","symbolLocation":204,"imageIndex":31},{"imageOffset":68892,"symbol":"-[UIPrintInteractionController _ensurePDFIsUnlockedFirstAttempt:completionHandler:]","symbolLocation":384,"imageIndex":31},{"imageOffset":24440,"symbol":"-[UIPrintInteractionController _presentAnimated:hostingScene:completionHandler:]","symbolLocation":620,"imageIndex":31},{"imageOffset":460048,"symbol":"-[UIPrintActivity performActivity]","symbolLocation":272,"imageIndex":32},{"imageOffset":449908,"symbol":"-[SHSheetActivityPerformer _performPresentationWithViewController:]","symbolLocation":452,"imageIndex":32},{"imageOffset":1218716,"symbol":"-[UIPresentationController transitionDidFinish:]","symbolLocation":1096,"imageIndex":24},{"imageOffset":1217384,"symbol":"__56-[UIPresentationController runTransitionForCurrentState]_block_invoke.111","symbolLocation":336,"imageIndex":24},{"imageOffset":1216900,"symbol":"-[_UIViewControllerTransitionContext completeTransition:]","symbolLocation":116,"imageIndex":24},{"imageOffset":544956,"symbol":"__UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__","symbolLocation":36,"imageIndex":24},{"imageOffset":542804,"symbol":"-[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]","symbolLocation":624,"imageIndex":24},{"imageOffset":540364,"symbol":"-[UIViewAnimationState sendDelegateAnimationDidStop:finished:]","symbolLocation":436,"imageIndex":24},{"imageOffset":418968,"symbol":"-[UIViewAnimationState animationDidStop:finished:]","symbolLocation":196,"imageIndex":24},{"imageOffset":419244,"symbol":"-[UIViewAnimationState animationDidStop:finished:]","symbolLocation":472,"imageIndex":24},{"imageOffset":468844,"symbol":"run_animation_callbacks(void*)","symbolLocation":132,"imageIndex":33},{"imageOffset":17152,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":21},{"imageOffset":76184,"symbol":"_dispatch_main_queue_drain","symbolLocation":984,"imageIndex":21},{"imageOffset":75184,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":44,"imageIndex":21},{"imageOffset":227772,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":16,"imageIndex":22},{"imageOffset":214728,"symbol":"__CFRunLoopRun","symbolLocation":1996,"imageIndex":22},{"imageOffset":212504,"symbol":"CFRunLoopRunSpecific","symbolLocation":608,"imageIndex":22},{"imageOffset":13804,"symbol":"GSEventRunModal","symbolLocation":164,"imageIndex":23},{"imageOffset":2290428,"symbol":"-[UIApplication _run]","symbolLocation":888,"imageIndex":24},{"imageOffset":2287928,"symbol":"UIApplicationMain","symbolLocation":340,"imageIndex":24},{"imageOffset":156240,"symbol":"main","symbolLocation":60,"imageIndex":15},{"imageOffset":23876,"symbol":"start","symbolLocation":2104,"imageIndex":25}],
When building/archiving a mixed Obj-C/Swift app from an XCode Cloud Workflow, it seems that the GCC_PREPROCESSOR_DEFINITIONS (Preprocessor Macros) are not used. We use them for environment switching based on scheme and we'd like to send a test build to Testflight through XCode Cloud for internal testing.
If this is the case, is the only option to rewrite code to use Swift Active Compilation Conditions?
Recently, I encountered a weird bug that I could not have a clue about. I have an API to save the configuration settings to a plastic, which is located at "/Library/Preferencs/Bitglass". The writer is a daemon and the function looks as follows. The weird thing I found recently was that the function could not save the IPC server port value when the daemon was installed by another installer daemon. But it can save other plastic values without any problems. When the list was not saved to a file, there is not any error messages. The following function is called by two daemons to save different settings into a plastic file. Is there anyone who has any clue why it failed to save the plist to a file when the daemon is installed and launched by another daemon?
(BOOL)setValue:(const char *)key value:(const char *)value {
std::lock_guardstd::mutex lock(plist_mutex);
NSString *nskey = [NSString stringWithUTF8String:key];
NSString *nsval = [NSString stringWithUTF8String:value];
@try {
[data setObject:nsval forKey:nskey];
if (![data writeToFile:plistPath atomically:YES]) {
BGLOG(LOG_ERROR, "Failed to write" << key << "=" << value);
return FALSE;
}
return TRUE;
} @catch (NSException *e) {
BGLOG(LOG_ERROR, "Caught exception:" << [e.name UTF8String] << " reason:" <<
[e.reason UTF8String]);
return FALSE;
}
I have an iOS app with the following configuration:
My own ObjC static library project - MyStaticLib
My own ObjC app target project - MyApp
I have both projects in the same Xcode workspace so that MyStaticLib is linked successfully to MyApp
Both projects have a mix of ObjC and Swift code successfully working.
Currently:
MyStaticLib: ObjC code can access Swift code and vice versa
MyApp: ObjC code can access Swift code and vice versa
ObjC code from MyApp can access ObjC code from MyStaticLib (This is achieved by adding Copy Files in Build Phases at MyStaticLib project settings with the ObjC header files)
Objective:
Swift code located in MyApp to access Swift code located in MyStaticLib
Issues:
If I'm trying to call a public Swift function located in MyStaticLib from MyApp, I get Cannot find 'YYY' in scope.
If I'm adding import MyStaticLib, I get dozens of Duplicate interface definition for class 'ZZZ'
Any idea how to resolve this?
Stack trace
OS Version: macOS 14.1 (23B74)
Report Version: 104
Crashed Thread: 1622089
Application Specific Information:
Fatal Error: EXC_BAD_ACCESS / KERN_PROTECTION_FAILURE / 0x16c91ffc0
Thread 1622089 Crashed:
0 libsystem_malloc.dylib 0x189cfcbc4 tiny_malloc_from_free_list
1 libsystem_malloc.dylib 0x189cfb2c4 szone_malloc_should_clear
2 Electron Framework 0x10e39f904 allocator_shim::MallocZoneFunctionsToReplaceDefault::lambda::__invoke (allocator_shim.cc:232)
3 CoreFoundation 0x189f5273c __CFStrAllocateMutableContents
4 CoreFoundation 0x189f52028 __CFStringChangeSizeMultiple
5 CoreFoundation 0x189f6d62c __CFStringAppendBytes
6 CoreFoundation 0x189f6c454 __CFStringAppendFormatCore
7 CoreFoundation 0x18a0a0ad0 _CFStringCreateWithFormatAndArgumentsReturningMetadata
8 CoreFoundation 0x189fb3e48 CFStringCreateWithFormatAndArguments
9 CoreFoundation 0x189f69e1c CFStringCreateWithFormat
10 HIServices 0x1903291a8 setWasOnceAuthorizeForAccessibility
11 HIServices 0x1903235a0 AXUIElementCopyAttributeValues
I have created an iOS .ipa file to run some tests, and all the test cases have os_log implemented for tracing. However, there is an issue; my tests take over 20 seconds to run, and the screen starts to dim. Consequently, the execution stops. Once I reactivate the screen, the tests resume. I added [UIApplication.sharedApplication setIdleTimerDisabled:YES]; to the code, but it doesn't resolve the problem.
I've used os_log to trace all the test case results. I wonder if it's possible to display all the os_log messages from runTest on the app main screen as well.
int main(int argc, char** argv) {
//Separate thread to runTest, os_log implemented there
std::thread thread_obj(runTests, argc, argv);
int applicationReturn;
@autoreleasepool {
[UIApplication.sharedApplication setIdleTimerDisabled:YES];
applicationReturn = UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
thread_obj.join();
[UIApplication.sharedApplication setIdleTimerDisabled:NO];
return applicationReturn;
}
I was going through this apple documention and it states, "By default, the generated header contains interfaces for Swift declarations marked with the public or open modifier", however, In my Xcode project, the public methods are not visible in the objective C code, and only the methods that are marked with @objc are visible. Is there some problem in my code or Is this a bug?
Hello.
I'm having problems with a narrow video aspect ratio displayed on an iPad Air.
In an outlet labeled ImagePreviewOutlet I want to display a video feed from the iPad camera facing the user. So basically the user will see their own face. I did all the necessary moves in the Story Board and in the code and I got what I wanted. Except it is in the wrong Aspect Ratio. The image doesn't fill the screen of the iPad even though the dimensions of the ImagePreviewOutlet does. It's narrow, showing white space on either side of the video. I want a wider aspect ratio. I understand that the iPad has 2 ratios : 4:3 and 16:9.
Can anybody help me? I can supply the code that I'm using but I don't want my first post to be overwhelming.
Thank you for your time.
JR
I use a macro to do logging:
#define LOG(fmt, ...) NSLog((fmt), ##VA_ARGS);
which means I can write code like:
LOG(@"radius=%.1f", fRadius)
Up until Xcode 15 the %.1f would be respected and display fRadius to one decimal place. But since Xcode 15 it seems to ignore that and just display all decimal places regardless.
Anyone know why, and how to fix that?
Hi,
Is there a way I can find all the permissions which are granted/denied to an app in iOS?
Any particular API which can run through all the permissions at one place?
I am building a project which has swift, cpp and objective - c files. Till now the app was working fine. But now Since the app is built using the newer Xcode version ie Xcode 15, the app is crashing in the BigSur( MacOS 11) using arm64 processor. It works fine in all other OS including OS 11 with x86_64 processor. When I checked the reason for the crash, the crash report points at the place where we created cpp instances in objective c file. My code is as follows
_deviceList = new AudioDeviceList(false); // AudioDeviceList is the cpp class and I am creating instance for this in Objective c file
mBassTrebleLevelLeft = new BassTreble(512); // BassTreble is the cpp class and I am creating instance for this in Objective c file
The crash points at these lines.
Can anyone please help me why there is issue with Xcode 15 on creation of cpp instance?
Simple question,
I want to determine the number of performance cores in an Python script (better a Python app frozen with PyInstaller, which could make a difference). there are some ways to get the number of CPUs/cores like os.cpu_count(), multiprocessing.cpu_count() or psutil.cpu_count() (the later allowing discrimination between physical and virtual cores). However, Apple Silicon CPUs are separated into performance and efficiency cores, which you can get with (e.g.) sysctl hw.perflevel0.logicalcpu_max for performance and sysctl hw.perflevel1.logicalcpu_max for efficiency cores. Is there any way to get this in Python besides running sysctl and get the shell output? Maybe using the pyobjc package?
This is enterprise application and we distribute using TestFairy for testing. Today when we upload IPA file to TestFairy and downloaded app in iPad, we are getting error showing "Unable To Install" Please try again later after installation finish.
Attached screenshot for reference.
This app is in Objective C.
Previous versions uploaded on TestFairy working fine and able to install.
I get the message "objc[29459]: class `NSKVONotifying_AVCapturePhotoOutput' not linked into application" and I do not seem to be able to process a captured photo. Users on stackoverflow are seeing this too (using Swift): https://stackoverflow.com/questions/76893120/unable-to-capture-and-save-image-using-avcapturephotooutput-in-macos-app
I am running Ventura 13.0.1.
Minimal example:
#import <AVFoundation/AVFoundation.h>
@interface PhotoCaptureDelegate : NSObject <AVCapturePhotoCaptureDelegate>
@end
@implementation PhotoCaptureDelegate
- (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo error:(nullable NSError *)error {
if (error) {
NSLog(@"Error capturing photo: %@", error.localizedDescription);
} else {
NSLog(@"Ready to process photo.");
}
}
@end
int main(int argc, const char * argv[]) {
@autoreleasepool {
AVCaptureSession *captureSession = [[AVCaptureSession alloc] init];
AVCaptureDevice *captureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
if (captureDevice) {
NSError *error = nil;
AVCaptureDeviceInput *input = [AVCaptureDeviceInput deviceInputWithDevice:captureDevice error:&error];
if (!error) {
[captureSession beginConfiguration];
[captureSession addInput:input];
AVCapturePhotoOutput *photoOutput = [[AVCapturePhotoOutput alloc] init];
[captureSession addOutput:photoOutput];
[captureSession commitConfiguration];
[captureSession startRunning];
// Create and configure a capture connection
AVCaptureConnection *connection = [photoOutput connectionWithMediaType:AVMediaTypeVideo];
if (connection) {
// Configure settings for the photo capture
AVCapturePhotoSettings *photoSettings = [AVCapturePhotoSettings photoSettings];
//[photoSettings setFlashMode:AVCaptureFlashModeAuto]; // Set the flash mode if needed
PhotoCaptureDelegate *photoCaptureDelegate = [[PhotoCaptureDelegate alloc] init];
[photoOutput capturePhotoWithSettings:photoSettings delegate:photoCaptureDelegate];
// Capture a photo and delegate will receive the result
}
} else {
NSLog(@"Error adding input: %@", error.localizedDescription);
}
} else {
NSLog(@"No video capture device available");
}
}
return 0;
}
Compile with:
$ clang -framework AVFoundation -framework Foundation -o test avphoto.m
Any thoughts?
Best regards,
Linus
In iOS 17, I am having an issue where UIPopoverPresentationControllers are not retaining the preferred size of the UIViewController they contain.
The following method uses a UIPopoverPresentationController popoverVC to display a UIViewController contentVC from a UIView view anchor location frame.
+ (void) showDialogiPad:(UIViewController *)contentVC
fromPresentingVC:(UIViewController *)presentingVC
inView:(UIView *)view
atFrame:(CGRect)frame
withDirection:(UIPopoverArrowDirection)direction {
// Set content view controller size
contentVC.preferredContentSize = contentVC.view.frame.size;
// Choose the presentation style in which the content is
// displayed in a popover view
contentVC.modalPresentationStyle = UIModalPresentationPopover;
// Get a popover presentation controller
UIPopoverPresentationController *popoverVC =
contentVC.popoverPresentationController;
// Set the popover size and anchor location
contentVC.popoverPresentationController.sourceRect = frame;
contentVC.popoverPresentationController.sourceView = view;
// Set the arrow direction for the popover
popoverVC.permittedArrowDirections = direction;
// Present the popover presentation controller
[presentingVC presentViewController:contentVC animated:YES completion:nil];
}
Prior to iOS 17, the code displayed the popover as expected as shown here:
The issue now however is since the update to iOS 17, the popover is now squashed and displayed as:
A few observations:
The popover dialog actually displays properly the first time you open it. Every subsequent time you open it, it is squashed.
When I comment out the line that sets the preferredContentSize, the popover opens at the max size every time - so it shows all the content but it is not set to the size I want it to be.
If I leave preferredContentSize as is but change modalPresentationStyle to UIModalPresentationFormSheet, the size of the popover is correct but the popover always presents in the middle of the screen.
I am developing an mobile application on objective C.
I use UIImageView a lot to display several images on my app. It works fine up to iOS 16.
Starting on iOS 17 both on a real iPhone and on the simulators the images don't show. It is like UIImageView does not load the images on iOS17.
Is there anything new on iOS17 regarding how to use UIImageView?
Hi, The latest version of my app has a lot of comments about An -observeValueForKeyPath:ofObject:change:context: message was received but not handled crashes.However, the codes that caused the crash have not been changed in this version.
Crash log 0:
NSInternalInconsistencyException
<CTRun: 0x1147bfd90>{string range = (8, 1), string = "\u7BEE", attributes = <CFBasicHash 0x280356480 [0x20dd53a30]>{type = mutable dict, count = 3, entries => 0 : <CFString 0x20e455978 [0x20dd53a30]>{contents = "NSFont"} = <CTFont: 0x1147550a0>{name = PingFangSC-Regular, size = 27.000000, matrix = 0x0, descriptor = <CTFontDescriptor: 0x283c31ce0>{attributes = <CFBasicHash 0x280225cc0 [0x20dd53a30]>{type = mutable dict, count = 1, entries => 2 : <CFString 0x20e45bc38 [0x20dd53a30]>{contents = "NSFontNameAttribute"} = <CFString 0x281730060 [0x20dd53a30]>{contents = "PingFangSC-Regular"} } >}} 1 : <CFString 0x20ef906b0 [0x20dd53a30]>{contents = "NSParagraphStyle"} = <CTParagraphStyle: 0x28332e370>{base writing direction = -1, alignment = 0, line break mode = 0, default tab interval = 0 first line head indent = 0, head indent = 0, tail indent = 0 line height multiple = 0, maximum line height = 0, minimum line height = 0 line spacing adjustment = 0, paragraph spacing = 0, paragraph spacing before = 0 maximum li...too long be cutted!
0 CoreFoundation ___exceptionPreprocess + 232
14 UIKitCore -[UIViewController loadView] + 256
15 *** -[SNThemeViewController loadView] (SNThemeViewController.m:52)
Log1
NSInternalInconsistencyException
<CTFont: 0x118a0f7a0>{name = .PingFangSC-Regular, size = 19.000000, matrix = 0x0, descriptor = <CTFontDescriptor: 0x282b5c1e0>{attributes = <CFBasicHash 0x281427000 [0x21b4a9430]>{type = mutable dict, count = 1, entries => 2 : <CFString 0x21bb98888 [0x21b4a9430]>{contents = "NSFontNameAttribute"} = <CFString 0x21bb87408 [0x21b4a9430]>{contents = ".PingFangSC-Regular"} } >}}: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: position Observed object: <CALayer: 0x280e5e4c0> Change: { kind = 1; new = "NSPoint: {207, 0.5}"; } Context: 0x0
0 CoreFoundation ___exceptionPreprocess + 228
12 UIKitCore -[UITableViewHeaderFooterView layoutSubviews] + 84
13 *** -[SNCommentCellFooter layoutSubviews] (SNCommentCellFooter.m:63)
Log2
NSInternalInconsistencyException
<NWConcrete_nw_endpoint_flow: 0x10908f400>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: contentOffset Observed object: <UITableView: 0x1088b9a00; frame = (0 0; 428 799); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x28338cff0>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x283d1d5a0>; contentOffset: {0, 21781.666666666668}; contentSize: {428, 24466}; adjustedContentInset: {0, 0, 156, 0}; dataSource: <SNNewsPageTableDataSource: 0x281e0b250>> Change: { kind = 1; new = "NSPoint: {0, 21781.666666666668}"; } Context: 0x0
0 CoreFoundation ___exceptionPreprocess + 164
21 UIKitCore _UIApplicationMain + 340
22 *** main (main.m:15)
Log3
NSInternalInconsistencyException
<UILongPressGestureRecognizer: 0x135b942f0; state = Possible; view = <UITableViewCellContentView 0x135b81f00>; target= <(action=_longPressGestureRecognized:, target=<UITableViewCell 0x136a23200>)>>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: position Observed object: <CALayer: 0x281bf6180> Change: { kind = 1; new = "NSPoint: {19, 19}"; } Context: 0x0
0 CoreFoundation ___exceptionPreprocess + 228
12 UIKitCore -[UIImageView _setViewGeometry:forMetric:] + 172
13 *** -[SNLikeAnimationButton layoutSubviews] (SNLikeAnimationButton.m:142)
and so on...
I don’t know how to locate it now.
Please help me locate the problem.
I look forward to your reply.
If you need more information please let me know