Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSTCollectionView Compile error #664

Open
tehilata opened this issue Apr 5, 2022 · 0 comments
Open

PSTCollectionView Compile error #664

tehilata opened this issue Apr 5, 2022 · 0 comments

Comments

@tehilata
Copy link

tehilata commented Apr 5, 2022

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant