Val Kalinic Val Kalinic - 1 month ago 16
iOS Question

"object file format unrecognized, invalid, or unsuitable" Xcode error

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.

Answer

Make sure the 'Executable Name' (CFBundleExecutable) entry in your target's info.plist matches the 'Product Name' specified in your target settings.

iPhone Codesign object file format invalid or unsuitable

Comments