Codesign command error code meaning - ios

For the codesign command, where can I see what the numbered error code meanings? I'm exit status 1 and exit status 74. I'm curious on what these mean.

Related

ERROR at //build/config/ios/ios_sdk.gni:100:21: Script returned non-zero exit code

ERROR at //build/config/ios/ios_sdk.gni:100:21: Script returned non-zero exit code.
_ios_sdk_result = exec_script(script_name, ios_sdk_info_args, "scope")
^----------
Current dir: /Users/niu/New_OWT/src/out/Release-device-arm64/
Command: python /Users/niu/New_OWT/src/build/config/mac/sdk_info.py iphoneos
Returned 127.
See //build/config/ios/rules.gni:5:1: whence it was imported.
import("//build/config/ios/ios_sdk.gni")
^--------------------------------------
See //third_party/webrtc/webrtc.gni:31:3: whence it was imported.
import("//build/config/ios/rules.gni")
^------------------------------------
See //BUILD.gn:4:1: whence it was imported.
import("third_party/webrtc/webrtc.gni")
^-------------------------------------
I've executed sudo xcode-select -s /Applications/Xcode.app/Contents/Developer But still wrong

ARKit code issue {unknown error -1=ffffffffffffffff error: Task failed with exit 1}

I want to learn ARKit. I got apple's sample code and other sample codes in github.
There is a error, Xcode reports:
/Users/.../ARKitBasics-brwextbgckvaokheuvfoqkacalvx/Build/Products/Debug-iphoneos/ARKitBasics.app/Frameworks/libswiftARKit.dylib:
unknown error -1=ffffffffffffffff error: Task failed with exit 1
signal 0 { /usr/bin/codesign '--force' '--sign'
'B8FBC6429C19D8DBEDBAC1BD044D6D4D7B68D1CF' '--verbose'
'/Users/.../ARKitBasics-brwextbgckvaokheuvfoqkacalvx/Build/Products/Debug-iphoneos/ARKitBasics.app/Frameworks/libswiftARKit.dylib'
I guess it is about libswiftARKit.dylib ,I don't know where it is. i found ARKit.framework.
Any advice or explanation is welcomed.
Thanks in advance.
Try below command:
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k keychainPass keychainPath
keychainPass is your keychain password;
keychainPath is the file path of your keychain, normally it is ~/Library/Keychains/login.keychain and login.keychain-db
most answers using this command without codesign:, this is the tricky part

(unexpected EOF while looking for matching) Command /bin/sh failed with exit code 2

I am getting a strange error while archiving my project. 'Command /bin/sh failed with exit code 2' I have tried alot of ways to fix this have seen alot of posts on this but that all didn't work for me.
This is the error I am getting.

LCOV code coverage - Exit status 255

When i run the code coverage to output in html, I get the error message:
CalledProcessError: Command 'lcov -r mycoverage.2.temp "/../generated/*" -o mycoverage.2' returned non-zero exit status 255
The gcov -v gives:
gcov (GCC) 3.4.2
I tried to find what exit status 255 means, but with no luck.
Any expert please who might be able to help?

I am trying to return a nonzero exit code on an Xcode Run Script build phase, but it's not working

I have a script in my build phase that I am trying to 'return exit 1' after I throw a build error.
This is coming from a command line tool that is logging 'return exit 1' after there is a problem. The exit 1 shows up on the log, but Xcode still is telling me I need to return a nonzero exit code...
Any ideas?
EDIT
Here is the type of script:
Your script is presumably a (bash) shell script. In that case you shouldn't be using return exit 1; you should just be using exit 1.

Resources