I am getting following error on build:
The application does not have a valid signature
After playing with it a little while I have found following:
- error appears only after building app with no changes - that is, if I encounter crash during development and try to build again it will show error
- in order to build again I need to add space or new line and after that it will work
- it will work after full clean -> build. This is not really acceptable since project is huge (over 300 files) and build time is around 20 mins with cocoapods and what not.
- Happens on all kind of iOS, but only on device. On simulator it is working correctly. Tried from 8.0 to 10.2 iOS versions.
- Clean build will fix for only one time, after that if I try to build the same code again, same error occurs.
Other relevant information:
- Xcode 8.2 ( happened on 8.0 and 8.1 as well)
- Language is Swift 3
- MacOS is Sierra (10.12.1)
- Certificates used for signing are enterprise
Already tried all proposed solutions online including SO (e.g. App installation failed) but no luck.
My question is: How can I resolve this issue so I am able to build without changing code each time I want to build? I assume that this has something to do with Build settings...