i try to Archive the a project but i'm getting this error Command /usr/bin/codesign failed with exit code 1 - xcode

I try to run the prog :
CodeSign /Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework
cd /Users/admin/Documents/Development/POC2
export
CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "iPhone Distribution: **************name ***** (********)"
/usr/bin/codesign --force --sign 4070CCDBD98188BA13DE80C8A094CCDFAC2A2E4C --preserve-metadata=identifier,entitlements,flags --timestamp=none /Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework
/Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework: replacing existing signature
/Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework: unknown error -1=ffffffffffffffff
Command /usr/bin/codesign failed with exit code 1

Make sure you have a iTunes connect profile & try to create an app with the same name & build settings in there & then try to archive your project as sometime the developer account does not match the profile of the app so then you might get this error.
You have to go to iTunes & create a profile & give it the same name as the project builder & then try to validate the archive project from the Xcode.
If the validation is success then you can submit it to the app store & if not let me know what error you get while you validate the app so that we can look more in deep.

Related

Problem running an app on the iPhone with Xcode

Hello I am having some problems running my app on my iPhone when I run the app from me this error:
Xcode's output:
↳
error: unable to read property list from file: /Users/indumonta/AndroidStudioProjects/contagem_de_pessoas/ios/Runner/Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.) (in target 'Runner' from project 'Runner')
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on Tigomes.
Terminal:
MBP-de-Luis:~ indumonta$ plutil Info.plist
Info.plist: file does not exist or is not readable or is not a regular file (Error Domain=NSCocoaErrorDomain Code=260 "The file “Info.plist” couldn’t be opened because there is no such file." UserInfo={NSFilePath=Info.plist, NSUnderlyingError=0x7fd621d04140 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}})
Can someone help me?
Open your project directory and run from within
flutter create contagem_de_pessoas
This should create the missing info.plist

bundle format unrecognized, invalid, or unsuitableCommand > /usr/bin/codesign failed with exit code 1

I am trying to run my existing code from one system to another and facing continue following error :
bundle format unrecognized, invalid, or unsuitableCommand
/usr/bin/codesign failed with exit code 1
How to resolve this error ? I didn't change a single line of code. However in my existing system, its working like a charm. Any hep appreciate.
This is the error you are getting because of some system settings changed. You can solve it by following below steps :
This error will say for which pod you are facing this issue. So select that pod file.
Now select Target for that Pod
Now got To General
Tap on Choose info.plist File
It will show you pods-yourprojectnae-acknowledgements.plist, so select that option
Now Build and check
you will not find this error again
This solution works for me. Try once.

using security to importing CSSMERR_TP_CERT_EXPIRED secutity codesigning

Does anybody know why when I use 'security' on os x to import a valid identity that it seems to think it has expired:
There are 2 machines, my development machine and a jenkins slave.
I am using the xcodebuild to create an archive and then use:
xcodebuild -exportArchive -archivePath myApp.xcarchive -exportOptionsPlist exportOptions.plist -exportPath . PROVISIONING_PROFILE=fdd0caeb-58fb-41df-a5e8-e5e9bd1f95c9 "OTHER_CODE_SIGN_FLAGS=--keychain /Users/me/Library/Keychains/Buildsystem"
to build an ipa for the store. This works on my development machine using the same archive and the same exportOptions.plist but not on the jenkins slave. I get this error:
016-10-06 23:29:23.438 xcodebuild[87720:8494157] [MT] IDEDistribution:
-[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path
'/var/folders/yd/l_8k4cn91kjc9r853crzz98m0000gn/T/MyApp_2016-10-06_23-29-23.437.xcdistributionlogs'.
2016-10-06 23:29:23.888 xcodebuild[87720:8494157] [MT]
IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=1 "The
operation couldn’t be completed. (IDEDistributionErrorDomain error
1.)"
error: exportArchive: The operation couldn’t be completed.
(IDEDistributionErrorDomain error 1.)
Error Domain=IDEDistributionErrorDomain Code=1 "The operation couldn’t
be completed. (IDEDistributionErrorDomain error 1.)"
** EXPORT FAILED **
I suspect it is because it thinks the code signing identity is bad. When I imported the identity as:
security import AP_Store.p12 -k /Users/me/Library/Keychains/Buildsystem -P ******* -T /usr/bin/codesign
then run:
security find-identity
I get:
1) 71497439A2987BC6830DF2E4879DBD3A5F1B2857 "iPhone Distribution:
xxxxx (xxxxxxxxx)" (CSSMERR_TP_CERT_EXPIRED)
If I import the same identity on my development machine it says it is OK.
Does anybody know why the same identity would be OK on one machine but not another?
This was caused by an expired intermediate certificate.
Apple Worldwide Developer Relations Certification Authority
had expired.
After replacing it everything worked.
A good reference is: MaintainingCertificates
Another thing that can lead to errors such as:
2016-10-11 11:41:11.780 xcodebuild[87463:15799133] [MT]
IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=1
"(null)"
error: exportArchive: The operation couldn’t be completed.
(IDEDistributionErrorDomain error 1.)
is if you have an incorrect team ID in your exportOptions.plist file.

ibswiftCore.dylib: Permission denied, failed to run on simulator/device

After installing xcode8 I get the following 'compiling swift standard libraries' error:
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftRemoteMirror.dylib to /Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/libswiftRemoteMirror.dylib
Probing signature of /Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/Frameworks/libswiftCore.dylib
/usr/bin/codesign '-r-' '--display' '/Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/Frameworks/libswiftCore.dylib'
/Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/Frameworks/libswiftCore.dylib: code object is not signed at all
Codesigning /Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/Frameworks/libswiftCore.dylib
/usr/bin/codesign '--force' '--sign' '1C2273B489890D7C4407493EB7A4A0BC7E7D38FF' '--verbose' '-D' 'DEBUG' '/Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/Frameworks/libswiftCore.dylib'
/Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/Frameworks/libswiftCore.dylib: Permission denied
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' '1C2273B489890D7C4407493EB7A4A0BC7E7D38FF' '--verbose' '-D' 'DEBUG' '/Users/kamend/Library/Developer/Xcode/DerivedData/Evento-hhvrbzmhxucgladakdcphldjxugg/Build/Products/Debug-iphoneos/UTA.app/Frameworks/libswiftCore.dylib'
}
Other projects runs just fine, any suggestions?
Update: the project does not run on another computer also
found it :)
Not sure why I had 'Other code signing flags' set to "-D DEBUG".
Removing it solved the problem

Unable to run the app on IOS device

I have created a sample titanium project, I am able to run my app on emulator. But when i try to deploy the same device I'm getting the following error,
[ERROR] : Error details: Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“Plan India Feedback App”) were found.
[ERROR] : Error details: CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'
Can any one suggest me what is the issue and how to resolve the same.
Phone version is: 6.1.6
Emulator version: 8.1
It indicates that your app id and Provisioning profiles dont match.Please make them same and you would be good to go
Thanks

Resources