Skip to content

Commit

Permalink
Don't try to load static frameworks - close #373
Browse files Browse the repository at this point in the history
  • Loading branch information
jasssonpet committed Nov 13, 2015
1 parent a733a85 commit 3d1b8f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/NativeScript/Metadata/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,13 @@ struct ModuleMeta {
return (flags & 1) > 0;
}

bool isSystem() const {
bool isSharedFramework() const {
return (flags & 2) > 0;
}

bool isSystem() const {
return (flags & 3) > 0;
}
};

struct LibraryMeta {
Expand Down
2 changes: 1 addition & 1 deletion src/NativeScript/SymbolLoader.mm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ virtual bool load() override {
}

SymbolResolver* SymbolLoader::resolveModule(const Metadata::ModuleMeta* module) {
if (!module) {
if (!module || (module->isFramework() && !module->isSharedFramework())) {
return nullptr;
}

Expand Down
2 changes: 1 addition & 1 deletion src/metadata-generator

0 comments on commit 3d1b8f9

Please sign in to comment.