Build-wrapper fails on Gitlab CI after adding a new Swift Package through Swift Package manager

Getting the following error after adding a new swift manager package to my project.

xcodebuild: error: Could not resolve package dependencies:
  invalidManifestFormat("build-wrapper: connect to /tmp/build-wrapper-socket.ayaGz8: Operation not permitted", diagnosticFile: Optional(<AbsolutePath:"/Users/ec2-user/path/to/project/SourcePackages/ManifestLoading/vapor.dia">)) in https://github.com/vapor/vapor.git

Saw the following topic but didn’t find any info.

Any suggestions on what I setup I need to do in my server or how to get any diagnostic logs?

Hey there.

Can you make sure to provide the details asked for in the template post?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)