disablePushNotificationForCI = (basePath, xcodeprojName) => {
    commonFuncs.removeAPNSinEntitlements(basePath + xcodeprojName + '/Entitlements-Debug.plist');
    commonFuncs.removeAPNSinEntitlements(basePath + xcodeprojName + '/Entitlements-Release.plist');
}
remove APNS env from cordova project Entitlements-Debug.plist and Entitlements-Release.plist
This two file will work when xcode archive app