Skip to content

Not supported frameworks #9

@andrewSvsg

Description

@andrewSvsg

I tried to use with swift as framework

platform :ios, '8.0'
use_frameworks!

pod 'SHGalleryView'

Crash here
SHGalleryView.m
_mediaControlView = (SHMediaControlView *)[SHUtil viewFromNib:@"SHMediaControlView" bundle:nil];

  • (UIView *)viewFromNib:(NSString *)nibName bundle:(NSBundle *)bundle {
    if (!nibName || [nibName length] == 0) {
    return nil;
    }

    UIView *view = nil;

    if (!bundle) {
    bundle = [NSBundle mainBundle];//!!!!! nib placed in SHGalleryView.framework
    }

    // I assume, that there is only one root view in interface file
    NSArray *loadedObjects = [bundle loadNibNamed:nibName owner:nil options:nil];
    view = [loadedObjects lastObject];

    return view;
    }

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