The certificate used to sign AppName has either expired or has been revoked. An updated certificate is required to sign and install the application
Managed to solve the issue by moving the apps source files to a new directory. Still no idea what exactly was causing the issue, but this fix works well enough.
Xcode 9.2 certificate used to sign is either expired or revoke
OK I figured it out. The error message was not helping at all.
This was a project actually exported from Unity3D. In Unity3D I have some post build scripts that modifies Xcode project. It was adding a framework as embedded framework in post build script. I just removed the framework from embedded frameworks and add it again (in the general tab) and it fixed the problem.
How can I fix a revoked certificate?
It sounds like your Apple ID password may have changed since you last used Xcode - that would explain your Code Signing Error: The user name or passphrase you entered is not correct
error. Try navigating to Xcode > Preferences... and view the Accounts tab, and check for any errors there. Xcode may prompt you to sign in again with your Apple ID.
Your iOS Development certificate has been revoked
If you delete/ generate new certificate in Provisioning Portal(Certificates) then you get these types of messages "Your Development Certificate Has Been Revoked - you have revoked your Development certificate and it' s no longer valid".
To overcome this you need to generate provisioning profiles with the newly created distribution certificate, sign the build using the same, recreate the build and resubmit the app for review to AppStore.
For more info refer below link-
Revoked certificate - iPhone Programming
Apple developer you're certificate has been revoked
If you are changing your mac, you have to create the .p12 file from certificate and install that .p12 onto new mac. Then there will be no problem regarding that certificate.
If you are familiar with how to create .p12 file from certificate.
Please check this link for certificate :-
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html
Related Topics
Xcode 6 Storyboard Unwind Segue with Swift Not Connecting to Exit
Blocks on Swift (Animatewithduration:Animations:Completion:)
@Property/@Synthesize Equivalent in Swift
"No Such Module 'Alamofire'" Xcode Won't Recognize Alamofire Framework
How to Catch All iOS Push Notifications with Different User Actions Including Tap on App Icon
Removing New Line Characters from Nsstring
Set Custom Images to the Uibarbuttonitem But It Doesn't Show Any Image
iOS 7 and Later: Set Status Bar Style Per View Controller
Exc_Bad_Instruction (Code=Exc_I386_Invop, Subcode=0X0) on Dispatch_Semaphore_Dispose
Xcode Error on Simulator: Mgisdeviceoneoftype Is Not Supported on This Platform
How to Get the Frame of a View Inside Another View
Convert Nsdate to String in iOS Swift
Skspritenode - Create a Round Corner Node
Undefined Symbols for Architecture I386: "_Objc_Class_$_Zipexception", Referenced From: Error
Could Not Find Module for Target 'X86_64-Apple-Ios-Simulator'