Skip to content

PSTCollectionView Compile error #664

Open
@tehilata

Description

@tehilata

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions