BUILD SUCCEEDED, then [ERROR] An error occurred while running cordova build ios (exit code 1)

Trying to ionic cordova build ios --prod and I get

** BUILD SUCCEEDED **

[ERROR] An error occurred while running cordova build ios (exit code 1).

It is xcode 10, which is problematic, but I have followed the directions to deal with that here: https://github.com/apache/cordova-ios/issues/407

The only thing I think it could be is maybe this error:
:-1: /Users/b_d_m_p/path/APP/platforms/ios/cordova/build-debug.xcconfig:34: could not find included file 'Pods/Target Support Files/Pods-myapp/Pods-myapp.debug.xcconfig' in search paths (in target 'myapp')

(I was getting that error with the same command until I followed the xcode 10 instructions.)

I can’t find anything on either of the errors.
How can I troubleshoot this?