Can't build or archive app using xcodebuild "...-frameworks.sh: line 42: source: unbound variable"

0

I am unable to build our app using the xcodebuild command, however if I open the project in xcode and click build or archive from the Product menu, it builds absolutely fine. I can't work out what I am doing differently via cli that is causing it to error.

The command I am using:

xcodebuild archive -scheme Dropless -configuration Release -destination 'generic/platform=iOS' SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES

The error:

/ios/Pods/Target Support Files/Pods-Dropless/Pods-Dropless-frameworks.sh: line 42: source: unbound variable Command PhaseScriptExecution failed with a nonzero exit code

I have seen various posts online about this error and all seem to point toward the same thing with the defined architectures in some way., however nothing I do seems to make a difference and if it builds in xcode manually I can't see there being an issue with what I've defined.

This is my settings:

https://i.stack.imgur.com/OR8A3.png

  • xcode version: 13.4.1
  • osx version: 12.5.1 Monterey

Is anybody able to fix this issue? I am currently experiencing this in xcode 15

I'm currently getting the same error and don't know how to fix it. It happened after I agreed for some "recommendations" appeared when making an "Archive". It was said something unclear about some "enabling app symbols" or something like that. I don't what what it can all mean, Apple like such confusing things. Now I can't find anything about these "symbols" and how to disable them ))))

Can't build or archive app using xcodebuild "...-frameworks.sh: line 42: source: unbound variable"
 
 
Q