I have the dreaded
Code Sign error: No matching provisioning profiles found: This product type
must be built using a provisioning profile, however no provisioning profile
matching both the identity “Foo, Inc” and the bundle identifier “com.foo.Bar”
You can try the following command:
security cms -D -i some.mobileprovision but hard to tell if it will be helpful.