Backport NXEngine-IOS patch - https://github.com/PIlin/NXEngine-iOS/commit/4fab248cea7a0aab342713a536834bbdff169da2