For some reason, I have to develop a command-line tool for my company and pushlish it in my company. So, After my development, I try to notatize it. And after notatization, it can not wok. My step is as follow:
-
complie it as [tool].
-
run commands as follows :
codesign -fs [fs] --timestamp --force --deep --options runtime --entitlements [plist_path] [tool]
codesign -dvvv [tool]
productbuild --identifier [bundleId] --sign [cert] --timestamp --install-location --root [tool_folder] / [tool_folder_pkg]
xcrun altool --notarize-app --primary-bundle-id [bundleId] --username esc@tencent.com --password [password] --file [tool_folder_pak]
xcrun altool --notarization-info [notatizaion_id] --username esc@tencent.com --password [password]
xcrun stapler staple [tool_folder_pkg]
- try to unzip the pkg
pkgutil --expand [tool_folder_pkg] [folder]
cd [tool_folder_pkg]
tar xvf Payload
.[tool]
- get error:
zsh: killed [tool]
how can I fix it? Thanks a lot