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..
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.
I've got a link on a web page that should enable users to download a passbook file from a link, however when clicking on the link in Safari on an iPhone, I get the following error message:
Safari cannot download this file.
I have read similar Q&As on here, and the MIME type is set to application/vnd.apple.pkpass. The passbook can be downloaded on a Windows phone.
Any suggestions on why this is the case and how to resolve this so users can access the passbook file?
I've downloaded the passbook on a desktop and this is what it contains.
The pkpass contains the following files:
icon.png
logo.png
strip.png
manifest.json
pass.json
signature
An example of the manifest.json:
{
"icon.png": "fa6b59072ae5c8163c903d8c8b5f2e4a45fbd49b",
"logo.png": "3165c9be22cbf76e2b3118972dabaef8918390f5",
"strip.png": "5d15c45f543e8088c227fc54a6c01d1f9f0b1db3",
"pass.json": "0f536b34a6b73a7799aae43ff9861dde45a6dfc6"
}
An example of the pass.json:
{
"passTypeIdentifier":"pass.com.XXXX.sampleticket",
"formatVersion":1,
"serialNumber":"TIC1000000518",
"description":"XXXX",
"organizationName":"XXXX",
"teamIdentifier":"W9XR4FBDD4",
"logoText":"Dragon Bay",
"foregroundColor":"rgb(0,0,0)",
"backgroundColor":"rgb(255,255,0)",
"labelColor":"rgb(0,0,0)",
"eventTicket":{
"headerFields":[],
"primaryFields":[],
"secondaryFields":[{"key":"activity",
"label":"11/20/2015 12:00 AM",
"value":"One Day at the Museum"
}],
"auxiliaryFields":[],
"backFields":[{
"key":"terms",
"label":"Terms & Conditions",
"value":"XXXX"
},
{
"key":"contact",
"label":"XXXX",
"value":"XXXX"
},
{
"key":"legal",
"label":"Legal",
"value":"XXXX"
},
{
"key":"notes",
"changeMessage":"%#","label":"Notes","value":""
},
{
"key":"lastUpdated",
"label":"Last Updated",
"dateStyle":"PKDateStyleMedium",
"timeStyle":"PKDateStyleShort",
"isRelative":false,
"value":"2016-01-08T19:00Z"
}]
},
"barcode":{
"format":"PKBarcodeFormatPDF417",
"message":"1000000518",
"messageEncoding":"UTF-8",
"altText":"1000000518"
},
"authenticationToken":"0123456789ABCDEF",
"webServiceURL":"https://XXXX/passbook.svc"
}
I had a similar issue before which I resolved by ensuring the webServiceURL was https, however that is the case in this scenario.
Examining your logs, you have a problem with your signature.
Aug 4 17:08:22 pfr MobileSafari(PassKitCore)[611] <Notice>: Error evaluating trust: <private>
Aug 4 17:08:22 pfr MobileSafari(PassKitCore)[611] <Notice>: Signature validation: *** FAILED ***
Aug 4 17:08:22 pfr MobileSafari(PassKitCore)[611] <Fault>: Invalid data error reading pass <private>. <private>
Aug 4 17:08:22 pfr MobileSafari(PassKitCore)[611] <Notice>: Invalid data error reading pass <private>. <private>
Aug 4 17:08:22 pfr MobileSafari[611] <Notice>: PassBook Pass download failed: The pass cannot be read because it isn\M-b\M^#\M^Yt valid.
Things to check:
Do the SHA1 hashes of each file match the manifest?
Is the certificate revoked or expired?
Does the signature contain the updated Apple WWDR certificate (the old one expired in February)?
Does the signature contain a signing date?
Update:
After checking your signature, I can see that it was signed by the expired Apple WWDR certificate. This certificate expired 2016-02-14T18:56:35Z.
Apple Root CA0 080214185635Z 160214185635Z
Download the new certificate and try compiling the pass again.
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.
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