System Keychain Has an Entry that can't be deleted - iphone

I'm trying to build my app with xcode and it's throwing a code sign error saying:
iPhone Distribution: jetheat: ambiguous (matches "iPhone Distribution: jetheat" in /Library/Keychains/System.keychain and "iPhone Distribution: jetheat" in /Users/Jet/Library/Keychains/login.keychain
Command /usr/bin/codesign failed with exit code 1
So it says that I have two distribution certificates in my keychain, which is true as i can see that in my keychain.
But when I try to delete the certificate within the system keychain, it just wont allow me to do it.
It says:
An error occurred while deleting “iPhone Distribution: jetheat.”
The specified item could not be found in the keychain.
Any ideas what I can do?
Thanks,
JH

Related

How to fix error "PhaseScriptExecution failed with a nonzero exit code" in Swift 5

I am developing an rtsp broadcast program.
The program downloaded(SampleBrodcaster) Swift sample code for rtsp / XCODE 13 as a sample works in the simulator, but when run on iPhone 11 to use the camera, the following compilation error occurs.
I'm new to iOS development(I'm c/c++ developer), so I don't know much.
How can I solve this?
sent 88643 bytes received 70 bytes 177426.00 bytes/sec
total size is 88404 speedup is 1.00
Code Signing /Users/jaynoh/Library/Developer/Xcode/DerivedData/SampleBroadcaster-bfqdifvwkqgjeeabmtbfrwzwpzmr/Build/Products/Debug-iphoneos/SampleBroadcaster.app/Frameworks/UriParser.framework with Identity Apple Development: concepters.team#gmail.com (TAH2WY6YFR)
/usr/bin/codesign --force --sign 8A760D8597ECE1CBC9715B09A62A9787D2854F0C --preserve-metadata=identifier,entitlements '/Users/jaynoh/Library/Developer/Xcode/DerivedData/SampleBroadcaster-bfqdifvwkqgjeeabmtbfrwzwpzmr/Build/Products/Debug-iphoneos/SampleBroadcaster.app/Frameworks/UriParser.framework'
Warning: unable to build chain to self-signed root for signer "Apple Development: concepters.team#gmail.com (TAH2WY6YFR)"
/Users/jaynoh/Library/Developer/Xcode/DerivedData/SampleBroadcaster-bfqdifvwkqgjeeabmtbfrwzwpzmr/Build/Products/Debug-iphoneos/SampleBroadcaster.app/Frameworks/UriParser.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code

Unity 3D -- Failed to sign APK - while i have given correct keystore and password

i was building my sign apk, there was no issue. but suddenly its start giving me error of "Failed to sign APK Package."
my keystore is correct,
password is correct,
alias is correct....
** This is the error below **
Failed to sign APK package.
D:\Plugins\Android_SDK\build-tools\27.0.3\apksigner.bat sign --ks "G:/__KeyStore/ormeoo.keystore" --ks-pass stdin --ks-key-alias "ormeoo" --key-pass stdin "F:\Projects\Current Working_2\OR - 98% Impossible Monster Car\Temp/StagingArea/Package.apk"
Perhaps another work around;
Try changing the Build System to Gradle (New) instead of Internal (Default).
Hope it helps..

Swift stdlib tool error when building to iPhone X - Xcode 9.1

When I am trying to build to my iPhone, I am getting a "Swift stdlib tool Error, Task failed with exit 1 signal 0" When I double click on it, it takes me to the following in the Activity Log:
/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib: code object is not signed at all
Codesigning /Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib
/usr/bin/codesign '--force' '--sign' '9CAA1DDB653D3C2804161CCBEFFD314ADA9DCD76' '--verbose' '/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib'
/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' '9CAA1DDB653D3C2804161CCBEFFD314ADA9DCD76' '--verbose' '/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib'
}
When I searched on here, I found this question: Swift stdlib tool Error
I downloaded my profiles, and for iOS Development Certificates I have "Tommy's iMac" and "Untitled", both dated 11/8/17. The Untitled one has a red X and says "Missing Private Key", but the only option in there is to add another certificate, so not sure if that is why I'm having a problem or not; nor what to do about that error.
I had the same issue. For some reason, recreation development certificate and provision profile from the scratch resolved the issue. Thanks.

Corona iPhone Deployment Warning

I have developed a game using corona. Now I get this warning while trying to build for iPhone using new provisioning profile.
warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
failed to extract requirements data: 1
/Users/codemenmini2012-4/Desktop/ArcheryClassiciOS.app: invalid signature (code or signature have been modified)
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 879
- (null)
warning: Unable to extract codesigning entitlements from your application. Please make sure ArcheryClassiciOS is a valid Mach executable that's properly codesigned. (-19050)
/Users/codemenmini2012-4/Desktop/ArcheryClassiciOS.app/ArcheryClassiciOS: invalid signature (code or signature have been modified)- (null)
Have you tried revoking the Profile and requesting it again with a key from your machine? Apples profiles are annoying me quite often, too....

Sign app in xcode with ios5

I face a problem while I sign the app with ios sdk5, this problem I have never faced before ...
error message as follows:
iPhone Distribution: iApp: ambiguous (matches "iPhone Distribution: AppDever"
in /Library/Keychains/System.keychain and "iPhone Distribution: AppDever" in
/Users/icoco/Library/Keychains/login.keychain)
Command /usr/bin/codesign failed with exit code 1
I often import the certificate file into 'login' and 'system' , but now it seem report error ...
anyone can give help ? thanks
Sounds like you imported the certificate into the system keychain and your user one. I'd try removing it from one of them.