I don't see any reasons why this message should come at the end of the log:
/Users/Val/Library/Developer/Xcode/DerivedData/Mathematics-dzakmzlewrmgvibasvuixiwmkwwp/Build/Products/Debug-iphoneos/Mathematics.app: object file format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1
How can I fix this error?
I am desperate, all my certificates and profiles are valid, the app itself has no bugs at all.