Error while executing 'tns run ios' and 'tns run android' commands


#1

I’m getting below error

I’ve android studio installed and Xcode installed on my mac

Command failed: ruby -e “require ‘xcodeproj’; Xcodeproj::Config.new(’/Users/coder/Documents/angular-related-stuff/HelloWorld/platforms/ios/plugins-debug.xcconfig’).merge(Xcodeproj::Config.new(’/Users/coder/Documents/angular-related-stuff/HelloWorld/app/App_Resources/iOS/build.xcconfig’)).save_as(Pathname.new(’/Users/coder/Documents/angular-related-stuff/HelloWorld/platforms/ios/plugins-debug.xcconfig’))”
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- xcodeproj (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
from -e:1:in `’


#2

It worked after running > ‘tns doctor’ and installing required dependencies