You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an old app (2 years ago) which uses MWPhotoBrowser.
When I try to compile it I get this error :
Import of module 'Darwin.POSIX.dlfcn' appears within function 'PSTSimulatorAnimationDragCoefficient'
This is the reference for the code:
CGFloat PSTSimulatorAnimationDragCoefficient(void) {
static CGFloat (UIAnimationDragCoefficient)(void) = NULL;
//#if TARGET_IPHONE_SIMULATOR
#if TARGET_OS_SIMULATOR
#import <dlfcn.h>
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
UIAnimationDragCoefficient = (CGFloat ()(void))dlsym(RTLD_DEFAULT, "UIAnimationDragCoefficient");
});
#endif
return UIAnimationDragCoefficient ? UIAnimationDragCoefficient() : 1.f;
}
Thank you !
The text was updated successfully, but these errors were encountered:
I have an old app (2 years ago) which uses MWPhotoBrowser.
When I try to compile it I get this error :
Import of module 'Darwin.POSIX.dlfcn' appears within function 'PSTSimulatorAnimationDragCoefficient'
This is the reference for the code:
CGFloat PSTSimulatorAnimationDragCoefficient(void) {
static CGFloat (UIAnimationDragCoefficient)(void) = NULL;
//#if TARGET_IPHONE_SIMULATOR
#if TARGET_OS_SIMULATOR
#import <dlfcn.h>
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
UIAnimationDragCoefficient = (CGFloat ()(void))dlsym(RTLD_DEFAULT, "UIAnimationDragCoefficient");
});
#endif
return UIAnimationDragCoefficient ? UIAnimationDragCoefficient() : 1.f;
}
Thank you !
The text was updated successfully, but these errors were encountered: