Xcodebuild error: 'Projectname.xcworkspace' is not a workspace file

I am doing the following command in order to run my ionic app in my iphone:

ionic cordova build ios

or

ionic cordova build ios --prod

but i am receving the following error:

Building for iphone SE Simulator…



and this error is presented:

xcodebuild: error: ‘ProjectName.xcworkspace’ is not a workspace file.

ANY HELPS PLS ???