It seems to work now. Please correct me but there is a difference, whether command is inserted in 'Execute commands' section or not of Build Settings.