iOS - mobileprovision validation corrected + clean code