Ionic3 iOS^6.2.0 OneSignal@3.0.1 throws error

Description:
Facing below error while building iOS project with OneSignal plugin

PODS_XCFRAMEWORKS_BUILD_DIR: unbound variable Command PhaseScriptExecution failed with a nonzero exit code
Command PhaseScriptExecution failed with a nonzero exit code

Environment
ionic3
cordova0iOS 6.2.0
iOS Build version 15.2
Onesignal 3.0.1

Steps to Reproduce Issue:

  1. Add the onesignal-cordova-plugin@3.0.1 to your project
  2. Initialize the plugin with your app ID
  3. Build app