One way I found is to swizzle UITouch force and timestamp methods.
#import <objc/runtime.h>
@implementation UITouch (UITouch_Overrides)
+ (void)load {
[super load];
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self swizzleForce];
[self swizzleTimestamp];
});
}
+ (void)swizzleForce {
[self swizzle:@selector(force) with:@selector(ed_force)];
}
+ (void)swizzleTimestamp {
[self swizzle:@selector(timestamp) with:@selector(ed_timestamp)];
}
+ (void)swizzle:(SEL)originalSelector with:(SEL)swizzledSelector {
Class class = [self class];
Method originalMethod = class_getInstanceMethod(class, originalSelector);
Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector);
BOOL didAddMethod =
class_addMethod(class,
originalSelector,
method_getImplementation(swizzledMethod),
method_getTypeEncoding(swizzledMethod));
if (didAddMethod) {
class_replaceMethod(class,
swizzledSelector,
method_getImplementation(originalMethod),
method_getTypeEncoding(originalMethod));
} else {
method_exchangeImplementations(originalMethod, swizzledMethod);
}
}
- (CGFloat)ed_force {
return 1.0;
}
- (NSTimeInterval)ed_timestamp {
return 0;
}
@end
Post
Replies
Boosts
Views
Activity
What helped to me is removing saved Safari windows state.
To remove it:
Open Terminal app
Copy&paste this
rm /Users/ivanparfenchuk/Library/Containers/com.apple.Safari/Data/Library/Saved\ Application\ State/com.apple.Safari.savedState/windows.plist
and hit Return.
This is on macOS Big Sur. If the file isn't there, try to search for windows.plist in other places
Have the same question: https://developer.apple.com/forums/thread/652532
Tried swizzling methods like defaultWidthForInkType:, without any luck so far.
Same here... Suddenly, the fastlane+Bitrise pipeline stopped working today with errors likeITMS-90034: Missing or invalid signature - The bundle 'com.firstagenda.edagsordenqa' at bundle path 'Payload/edagsordenqa.app' is not signed using an Apple submission certificate.It seems to fail randomly. I would suggest resubmitting builds several times. Half of the submitted builds failed for us today.