Fixed issue that framework cannot be loaded on devices.