alibaba / Tangram-iOS

Tangram is a modular UI solution for building native page dynamically, including Tangram for Android, Tangram for iOS and even backend CMS. This project provides the sdk on iOS platform.
MIT License
1.86k stars 298 forks source link

TangramLayoutTypeMap在pod中找不到 #113

Open PJStation opened 3 years ago

PJStation commented 3 years ago

pod 'Tangram', '~> 2.1.5'

- (instancetype)init
{
    if (self = [super init]) {
        _layoutTypeMap = [[NSMutableDictionary alloc]init];
        NSString *layoutMapPath = [[NSBundle mainBundle] pathForResource:@"TangramLayoutTypeMap" ofType:@"plist"];
        [_layoutTypeMap addEntriesFromDictionary:[TangramDefaultLayoutFactory decodeTypeMap:[NSArray arrayWithContentsOfFile:layoutMapPath]]];
    }
    return self;
}

layoutMapPath为nil