XAPK File validation failed

Hi. Friend. I getting this error. XAPK File validation failed Because of obb file is in storage and the storage is permission is off by default. Manually i fix it by going in app manager and turn on the storage permission. But this is not the right way. anyone know to fix it.