Search results for

“codesign”

3,221 results found

Post

Replies

Boosts

Views

Activity

HI guys I had an error in Xcode 10. Command CodeSign failed with nonzero exit code
To be specific it is related to vuforia framework./Users/jagruth/Library/Developer/Xcode/DerivedData/Unity-iPhone-cnaqgnyaxmxsgrcjphmxndjruogs/Build/Products/ReleaseForRunning-iphoneos/ArSample11.app/Frameworks/Vuforia.framework: errSecInternalComponentCommand CodeSign failed with a nonzero exit code
3
0
23k
Jul ’18
Integrating TouchID with Authorization Services
I'm currently using authorization services in a factored app(user mode app + privileged helper tool). When performing a privilged operation, the user is prompted for their password. How can I also allow authentication through touch ID?Additional info:Device: MacBook Pro (15-inch, 2017)macOS version: 10.13.4 (17E202)The code is adapted from the EvenBetterAuthorizationSample, so nothing fancy going on there.I also dug around a bit through /usr/libexec/authopen which does allow the user to choose between TouchID and password. If use codesign to change it's signature, only the password prompt is shown. Am I correct to assume that this feature is currently available only for Apple signed applications/binaries?As an alternative, I also fiddled around with LocalAuthentication which works great for a standalone app, but does it provide a way of passing the context between processes, as with AuthorizationMakeExternalForm?
8
0
4.4k
Jul ’18
Reply to Running SimpleTunnel as MacOS app
In terms of the App-to-Per-App VPN Mapping payload array of dictionaries, I was unable to figure out how to obtain the DesignatedRequirement and SigningIdentifier values. You can get these with the codesign tool. For example: $ # DesignatedRequirement $ $ codesign -d --requirements - /Applications/TextEdit.app … designated => identifier com.apple.TextEdit and anchor apple $ $ # SigningIdentifier $ $ codesign -d -v /Applications/TextEdit.app … Identifier=com.apple.TextEdit …Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Jul ’18
Error: Command CodeSign failed with a nonzero exit code.
Briefly since downloading and installing Xcode 10 beta 5 I have not been able to get any Provisional Profiles to work. In fact, my application fails immediately with the following error message.Error: Command CodeSign failed with a nonzero exit code.Interestingly, when I switch on the Automatically manage signing option Xcode generates certificates. However Provisional Profiles can't seem to find certificates.Honestly, I have tried manually creating certificates as well as profiles with no luck. I have been trying to find a solution since downloading the beta version yesterday.I would greatly appreciate any feedback and or suggestions for possible solutions.Thank you for your time.
1
0
5.1k
Aug ’18
Simultaneous access to Keychain
In our company we have big Xcode project with workspace that contains 7 subprojects. Yesterday I installed 10.14 18A347e and today I get troubles with codesign. Xcode building for devices is failed with error every time:error: The specified item could not be found in the keychain.It is remarkable that every build finished with different result: codesign cannot sign different frameworks and libs build to build.CodeSign /Users/egor.merkushev/Library/Developer/Xcode/DerivedData/MyApp-daluhbxrpqwoyrcpcfqzexbfzsud/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/somename.framework cd /Users/egor.merkushev/Development/myapp 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 Developer: Egor Merkushev
11
0
7.6k
Aug ’18
apple script app not working in 10.14
Hi AllI need to know if this is a bug (i have raised a bug report) or mojave will go live like this.I have 100s of installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to add my folders (the folder that the customers buy) in to the correct location for use. It currently works on every macOS and worked on the first beta versions of mojave but not the most recent 10.14. and gives me this Not authorized to send Apple events to Finder. (-1743)I have read this is a security update to protect personal data but surley this can not affect all Applescripts that just deliver files like mine.Path: Library/Audio/Apple Loops/Apple/Final Cut Pro Sound EffectsTSI carnt help as does not provide support for pre-release software.
1
0
1.1k
Aug ’18
apple script fails "Not authorized to send Apple events to Finder. (-1743)"
Hi AllI need to know if this is a bug (i have raised a bug report) or mojave will go live like this.I have 100s of installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to add my folders (the folder that the customers buy) in to the correct location for use. It currently works on every macOS and worked on the first beta versions of mojave but not the most recent 10.14. and gives me this Not authorized to send Apple events to Finder. (-1743)I have read this is a security update to protect personal data but surley this can not affect all Applescripts that just deliver files like mine.Path: Library/Audio/Apple Loops/Apple/Final Cut Pro Sound EffectsTSI carnt help as does not provide support for pre-release software.
0
0
1.4k
Aug ’18
Reply to Mojave beta 6 breaks Applescripts
I have same issue (i have raised a bug report) I have 100s of installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to add my folders (the folder that the customers buy) in to the correct location for use. It currently works on every macOS and worked on the first beta versions of mojave but not the most recent 10.14. beta 6 and gives me this Not authorized to send Apple events to Finder. (-1743)Path: Library/Audio/Apple Loops/Apple/Final Cut Pro Sound EffectsThis must be a bug right?
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’18
CodeSign failed with a nonzero exit code (Signal 4)
I created a simple HelloWorld test app and try to run it on my own device with a developer cert (paid). Everything seems to be ok and the certs are being managed automatically be XCode. No errors. Runs fine on several simulators as well as latest iOS versions and also on XCode-beta.The problem is: when I try to run it on my real (connected) device, I get this code signing error (/usr/bin/codesign receives an Illegal instruction signal and crashes).I browsed several forums and tried several things. None helped. Here is the XCode message (from XCode-10-beta, but same is true for XCode 9.4):...Signing Identity: iPhone Developer: xxx xxx (xxx)Provisioning Profile: iOS Team Provisioning Profile: * (xxxxxxxxxxx) /usr/bin/codesign --force --sign 82F025A538B4126E06BD4EAB2E3D8A570CAB680C --entitlements /Users/lothar/Library/Developer/Xcode/DerivedData/HelloWorld2-awursthwknjafwgsizbtcixufbmq/Build/Intermediates.noindex/HelloWorld2.build/Debug-iphoneos/HelloWorld2.build/HelloWorld2.app.xcent --timesta
1
0
4.0k
Aug ’18
Reply to Mojave beta 6 breaks Applescripts
I cant convert all my scripts to Xcode...i have near 2000. I have many installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to do file editing and folder moving as well as System Events to run .pkgs. Now 100% of my scripts that I have saved as .app files dont work. I have tried adding applications like Finder, Script Editor, the .app itself to the whitelist in the Security & Privacy like Accessibility, Application Data and no success. I also do not have the option to add anything to the Automation section. All I ever get is this error message when trying to run my .app:Not authorized to send Apple events to Finder. (-1743)I am on the latest Mojave Beta version 10.14 and if this is something that is intention by Apple how the **** do I fix it?I sell digital downloads and if this isn't a bug or going to be fixed then this breaks all of my installers which is going to cause a huge problem for me. I need to know if this is a bug or if the
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’18
Reply to Using Swift Cocoa Pod with objective-c launch daemon
So there should not be any issue linking Swift runtime using one of the approaches above with daemon, right?I presume you’re talking about options A and B, because option C suggests static linking. If that’s correct then you’re correct, there shouldn’t be any problems using this approach for both the Swift runtime libraries and any other frameworks you need.There are a bunch of potential gotchas here but the one that immediately springs to mind is library validation (see the library flag in the codesign man page). This definitely won’t be a problem for B because all of your components are within your bundle. Option A is a bit trickier. I believe that library validation allows you to link with non-system libraries by absolute path as long as the libraries are signed by you. However, the man page doesn’t mention that possibility, so I may be wrong. If you need a definitive answer on this you should open a DTS tech support incident and talk to our Mac code signing specialist. Regardless, library validat
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’18
Code Signing Fails in Debug Mode with Embedded Framework
I can no longer run my app from Xcode with code signing for my Mac app. I've configured a debug provisioning profile manually and tried that but it fails, saying the embedded framework is not code signed at all.I tried Automatic code signing but it fails with the same error:code object is not signed at allIn subcomponent: PATH_HERECommand /usr/bin/codesign failed with exit code 1The only way I'm able to get the app to run is to turn off code signing alltogether in Debug mode. I've noticed in that case though, testing is pretty useless because my app can't event write a security scoped bookmark to disk.
3
0
7.7k
Aug ’18
Verify file signature with kSecCSConsiderExpiration
Hi,I use SecStaticCodeCheckValidity(staticCode, kSecCSConsiderExpiration, NULL) to verify file signature. My understanding is if timestamp exists in the signature, the signing time will be used for validation. Otherwise, the now time will be used for validation. I use codesign utility to sign the file with --timestamp=none so that no timestamp generated (I found kSecCodeInfoTime/signed time in signature, which I belive is internal signing time that specified by the signer).I then change system time to future time and make sure the signing certs in keychain are expired. I expected SecStaticCodeCheckValidity() returns errSecCertificateExpired, but it actually returns errSecSuccess. Did I do anything wrong here?
3
0
2k
Aug ’18
Reply to Swift stdlib tool Error: Task failed with exit 0 signal 4
With XCode 10 beta this error shows Command CodeSign failed with a nonzero exit code
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’18
HI guys I had an error in Xcode 10. Command CodeSign failed with nonzero exit code
To be specific it is related to vuforia framework./Users/jagruth/Library/Developer/Xcode/DerivedData/Unity-iPhone-cnaqgnyaxmxsgrcjphmxndjruogs/Build/Products/ReleaseForRunning-iphoneos/ArSample11.app/Frameworks/Vuforia.framework: errSecInternalComponentCommand CodeSign failed with a nonzero exit code
Replies
3
Boosts
0
Views
23k
Activity
Jul ’18
Integrating TouchID with Authorization Services
I'm currently using authorization services in a factored app(user mode app + privileged helper tool). When performing a privilged operation, the user is prompted for their password. How can I also allow authentication through touch ID?Additional info:Device: MacBook Pro (15-inch, 2017)macOS version: 10.13.4 (17E202)The code is adapted from the EvenBetterAuthorizationSample, so nothing fancy going on there.I also dug around a bit through /usr/libexec/authopen which does allow the user to choose between TouchID and password. If use codesign to change it's signature, only the password prompt is shown. Am I correct to assume that this feature is currently available only for Apple signed applications/binaries?As an alternative, I also fiddled around with LocalAuthentication which works great for a standalone app, but does it provide a way of passing the context between processes, as with AuthorizationMakeExternalForm?
Replies
8
Boosts
0
Views
4.4k
Activity
Jul ’18
Reply to Running SimpleTunnel as MacOS app
In terms of the App-to-Per-App VPN Mapping payload array of dictionaries, I was unable to figure out how to obtain the DesignatedRequirement and SigningIdentifier values. You can get these with the codesign tool. For example: $ # DesignatedRequirement $ $ codesign -d --requirements - /Applications/TextEdit.app … designated => identifier com.apple.TextEdit and anchor apple $ $ # SigningIdentifier $ $ codesign -d -v /Applications/TextEdit.app … Identifier=com.apple.TextEdit …Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Jul ’18
Error: Command CodeSign failed with a nonzero exit code.
Briefly since downloading and installing Xcode 10 beta 5 I have not been able to get any Provisional Profiles to work. In fact, my application fails immediately with the following error message.Error: Command CodeSign failed with a nonzero exit code.Interestingly, when I switch on the Automatically manage signing option Xcode generates certificates. However Provisional Profiles can't seem to find certificates.Honestly, I have tried manually creating certificates as well as profiles with no luck. I have been trying to find a solution since downloading the beta version yesterday.I would greatly appreciate any feedback and or suggestions for possible solutions.Thank you for your time.
Replies
1
Boosts
0
Views
5.1k
Activity
Aug ’18
Simultaneous access to Keychain
In our company we have big Xcode project with workspace that contains 7 subprojects. Yesterday I installed 10.14 18A347e and today I get troubles with codesign. Xcode building for devices is failed with error every time:error: The specified item could not be found in the keychain.It is remarkable that every build finished with different result: codesign cannot sign different frameworks and libs build to build.CodeSign /Users/egor.merkushev/Library/Developer/Xcode/DerivedData/MyApp-daluhbxrpqwoyrcpcfqzexbfzsud/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/somename.framework cd /Users/egor.merkushev/Development/myapp 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 Developer: Egor Merkushev
Replies
11
Boosts
0
Views
7.6k
Activity
Aug ’18
apple script app not working in 10.14
Hi AllI need to know if this is a bug (i have raised a bug report) or mojave will go live like this.I have 100s of installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to add my folders (the folder that the customers buy) in to the correct location for use. It currently works on every macOS and worked on the first beta versions of mojave but not the most recent 10.14. and gives me this Not authorized to send Apple events to Finder. (-1743)I have read this is a security update to protect personal data but surley this can not affect all Applescripts that just deliver files like mine.Path: Library/Audio/Apple Loops/Apple/Final Cut Pro Sound EffectsTSI carnt help as does not provide support for pre-release software.
Replies
1
Boosts
0
Views
1.1k
Activity
Aug ’18
apple script fails "Not authorized to send Apple events to Finder. (-1743)"
Hi AllI need to know if this is a bug (i have raised a bug report) or mojave will go live like this.I have 100s of installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to add my folders (the folder that the customers buy) in to the correct location for use. It currently works on every macOS and worked on the first beta versions of mojave but not the most recent 10.14. and gives me this Not authorized to send Apple events to Finder. (-1743)I have read this is a security update to protect personal data but surley this can not affect all Applescripts that just deliver files like mine.Path: Library/Audio/Apple Loops/Apple/Final Cut Pro Sound EffectsTSI carnt help as does not provide support for pre-release software.
Replies
0
Boosts
0
Views
1.4k
Activity
Aug ’18
Reply to Mojave beta 6 breaks Applescripts
I have same issue (i have raised a bug report) I have 100s of installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to add my folders (the folder that the customers buy) in to the correct location for use. It currently works on every macOS and worked on the first beta versions of mojave but not the most recent 10.14. beta 6 and gives me this Not authorized to send Apple events to Finder. (-1743)Path: Library/Audio/Apple Loops/Apple/Final Cut Pro Sound EffectsThis must be a bug right?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’18
CodeSign failed with a nonzero exit code (Signal 4)
I created a simple HelloWorld test app and try to run it on my own device with a developer cert (paid). Everything seems to be ok and the certs are being managed automatically be XCode. No errors. Runs fine on several simulators as well as latest iOS versions and also on XCode-beta.The problem is: when I try to run it on my real (connected) device, I get this code signing error (/usr/bin/codesign receives an Illegal instruction signal and crashes).I browsed several forums and tried several things. None helped. Here is the XCode message (from XCode-10-beta, but same is true for XCode 9.4):...Signing Identity: iPhone Developer: xxx xxx (xxx)Provisioning Profile: iOS Team Provisioning Profile: * (xxxxxxxxxxx) /usr/bin/codesign --force --sign 82F025A538B4126E06BD4EAB2E3D8A570CAB680C --entitlements /Users/lothar/Library/Developer/Xcode/DerivedData/HelloWorld2-awursthwknjafwgsizbtcixufbmq/Build/Intermediates.noindex/HelloWorld2.build/Debug-iphoneos/HelloWorld2.build/HelloWorld2.app.xcent --timesta
Replies
1
Boosts
0
Views
4.0k
Activity
Aug ’18
Reply to Mojave beta 6 breaks Applescripts
I cant convert all my scripts to Xcode...i have near 2000. I have many installers that I have written in Applescript as .app that are all codesigned and valid. These .apps use the Finder to do file editing and folder moving as well as System Events to run .pkgs. Now 100% of my scripts that I have saved as .app files dont work. I have tried adding applications like Finder, Script Editor, the .app itself to the whitelist in the Security & Privacy like Accessibility, Application Data and no success. I also do not have the option to add anything to the Automation section. All I ever get is this error message when trying to run my .app:Not authorized to send Apple events to Finder. (-1743)I am on the latest Mojave Beta version 10.14 and if this is something that is intention by Apple how the **** do I fix it?I sell digital downloads and if this isn't a bug or going to be fixed then this breaks all of my installers which is going to cause a huge problem for me. I need to know if this is a bug or if the
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’18
Reply to Using Swift Cocoa Pod with objective-c launch daemon
So there should not be any issue linking Swift runtime using one of the approaches above with daemon, right?I presume you’re talking about options A and B, because option C suggests static linking. If that’s correct then you’re correct, there shouldn’t be any problems using this approach for both the Swift runtime libraries and any other frameworks you need.There are a bunch of potential gotchas here but the one that immediately springs to mind is library validation (see the library flag in the codesign man page). This definitely won’t be a problem for B because all of your components are within your bundle. Option A is a bit trickier. I believe that library validation allows you to link with non-system libraries by absolute path as long as the libraries are signed by you. However, the man page doesn’t mention that possibility, so I may be wrong. If you need a definitive answer on this you should open a DTS tech support incident and talk to our Mac code signing specialist. Regardless, library validat
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’18
Code Signing Fails in Debug Mode with Embedded Framework
I can no longer run my app from Xcode with code signing for my Mac app. I've configured a debug provisioning profile manually and tried that but it fails, saying the embedded framework is not code signed at all.I tried Automatic code signing but it fails with the same error:code object is not signed at allIn subcomponent: PATH_HERECommand /usr/bin/codesign failed with exit code 1The only way I'm able to get the app to run is to turn off code signing alltogether in Debug mode. I've noticed in that case though, testing is pretty useless because my app can't event write a security scoped bookmark to disk.
Replies
3
Boosts
0
Views
7.7k
Activity
Aug ’18
Reply to Code Signing Fails in Debug Mode with Embedded Framework
Heh, I chucked some certificates from keychain finally was able to get Xcode to not complain about signing mismatch. For the embedded frameworks not building from source I codesigned them from the Command line. Seems to be working (for now). Not sure why automatic signing is unable to code sign those frameworks on copy properly though.
Replies
Boosts
Views
Activity
Aug ’18
Verify file signature with kSecCSConsiderExpiration
Hi,I use SecStaticCodeCheckValidity(staticCode, kSecCSConsiderExpiration, NULL) to verify file signature. My understanding is if timestamp exists in the signature, the signing time will be used for validation. Otherwise, the now time will be used for validation. I use codesign utility to sign the file with --timestamp=none so that no timestamp generated (I found kSecCodeInfoTime/signed time in signature, which I belive is internal signing time that specified by the signer).I then change system time to future time and make sure the signing certs in keychain are expired. I expected SecStaticCodeCheckValidity() returns errSecCertificateExpired, but it actually returns errSecSuccess. Did I do anything wrong here?
Replies
3
Boosts
0
Views
2k
Activity
Aug ’18