Fixes the issue between OS X Yosemite 10.10.2 beta and Google Chrome

chrome-yosemite-beta-10.10.2-bug-0

If you are a user who gets used to using a specific browser and no longer feels comfortable using any other, it is possible that you have come across an unpleasant surprise if you have updated to OS X Yosemite 10.10.2 beta when trying to run Google Chrome and see that it doesn't work, either because you are a developer or because you are enrolled in Apple's public beta program.

In any case, there is indeed evidence that the Google browser in its latest version does not work correctly with the beta that Apple has launched for OS X Yosemite, however it is possible to use it through a temporary solution until the final version of this is finally released. build.

The first recommendation as you may have imagined is that if you are a Chrome user, do not update to this latest beta version of Yosemite if you have not done so yet. If you have already done the step and you find yourself in the position of not being able to run your favorite browser You can use the terminal to launch this file that will surely help you until Apple releases the final version of OS X 10.10.2 and that thanks to the information given by 9to5mac, we can use.

No more copy and paste the following code into a document text and save it as »patch.m» without the quotes:

#import <AppKit/AppKit.h>

__attribute((constructor)) void Patch_10_10_2_entry()
{
NSLog(@"10.10.2 patch loaded");
}

@interface NSTouch ()
- (id)_initWithPreviousTouch:(NSTouch *)touch newPhase:(NSTouchPhase)phase position:(CGPoint)position     isResting:(BOOL)isResting force:(double)force;
@end

@implementation NSTouch (Patch_10_10_2)
- (id)_initWithPreviousTouch:(NSTouch *)touch newPhase:(NSTouchPhase)phase position:(CGPoint)position     isResting:(BOOL)isResting
{
return [self _initWithPreviousTouch:touch newPhase:phase position:position isResting:isResting force:0];
}
@end

Now, run this command in terminal:

clang -dynamiclib -framework AppKit ~/Desktop/patch.m -o ~/Desktop/patch.dylib

Lastly, this last command in the same terminal to launch Google Chrome:

env DYLD_INSERT_LIBRARIES=~/Desktop/patch.dylib "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

In this case, the truth is that it becomes tedious to have to do this every time you have to restart the computer or start it off, although if you have some knowledge with Automator you can create a script that does the whole process automatically to carry out the operation. Still, I'm pretty sure there isn't much time left for Apple to release the next version (10.10.2) of Yosemite and this bug has been fully corrected.