ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.6.0/gems/xcodeproj-1.13.0/LICENSE
(node:50444) UnhandledPromiseRejectionWarning: ReferenceError: code is not defined
at linker.inject_xcode (/usr/local/lib/node_modules/flutter-boot/src/ios/link.js:135:64)
at linker.link (/usr/local/lib/node_modules/flutter-boot/src/ios/link.js:59:10)
at BaseLinker.link (/usr/local/lib/node_modules/flutter-boot/src/generator/linker.js:30:12)
at init (/usr/local/lib/node_modules/flutter-boot/src/commands/init.js:72:16)
at async Command. (/usr/local/lib/node_modules/flutter-boot/src/commands/init.js:26:7)
(node:50444) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:50444) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.6.0/gems/xcodeproj-1.13.0/LICENSE (node:50444) UnhandledPromiseRejectionWarning: ReferenceError: code is not defined at linker.inject_xcode (/usr/local/lib/node_modules/flutter-boot/src/ios/link.js:135:64) at linker.link (/usr/local/lib/node_modules/flutter-boot/src/ios/link.js:59:10) at BaseLinker.link (/usr/local/lib/node_modules/flutter-boot/src/generator/linker.js:30:12) at init (/usr/local/lib/node_modules/flutter-boot/src/commands/init.js:72:16) at async Command. (/usr/local/lib/node_modules/flutter-boot/src/commands/init.js:26:7)
(node:50444) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:50444) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.