Ionic native and environment setup


I’m experiencing a problem trying to use Firebase plugin and push plugin.
The error is Plugin_not_installed.
Trying to found solution on internet I realized that can be a generic error which can also come from incorrect versions of ionic etc…
Also using this plugins i get warning during ionic cordova build ios…

(node:16616) UnhandledPromiseRejectionWarning: xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

and after build and run on xcode the app crash on simulator at this line

int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");

my ionic infos are

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : android 7.0.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2


    Node : v9.11.1
    npm  : 5.6.0 
    OS   : macOS High Sierra

If someone is using firebase or push can post is ionic info…so i can start from something that i know is working =)

If you have others ideas about this problem or need other infos to try understand…please let me know!

Thank you