Getting "Invalid Code Signature Identifer" uploading to Testflight

I am trying to upload my application to Testflight and I am getting multiple errors for included frameworks.


Specifically, the errors are

I am using Xcode 10.3 and all of this worked fine up until recently.


I've read in several places about the $(PLATFORM_NAME) having to be added? Exactly what has changed now?

Replies

Whoops. The image did not embed.


The errors are:


----

App Store Operation Error

Invalid Code Signature identifier. The identifier "org.alamofire.Alamofire.iphonesimulator" in your code signature for "Alamofire" must match its Bundle Identifier "org.alamofire.Alamofire.iphoneos".

----


This error is repeated for 3 other frameworks. Also, I am using Carthage.