All,
I am currently facing an issue while trying to install a provisioning profile using the open command. The command works perfectly fine when executed through screen sharing and the terminal on the remote machine. However, when I attempt the same command using an SSH terminal connection on my local machine, it fails to work properly.
Here is the command I am using: open /Users/ec2-user/Desktop/ProvProfile/MyAppQA.mobileprovision
When I run this command in the SSH terminal connection on my local machine, I encounter the following error message: "The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10822 "kLSServerCommunicationErr: The server process (registration and recent items) is not available" UserInfo={_LSLine=3863, _LSFunction=_LSOpenStuffCallLocal}"
Furthermore, when I execute this command in a Jenkins job, it fails with the same error message: "The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10822 "kLSServerCommunicationErr: The server process (registration and recent items) is not available" UserInfo={_LSLine=3863, _LSFunction=_LSOpenStuffCallLocal}"
I am also attempting other commands concurrently, such as security import /Users/ec2-user/Desktop/ProvProfile/MyAppQA.mobileprovision -k /Users/ec2-user/Library/Keychains/login.keychain-db, but I encounter the following error: "security: SecKeychainItemImport: Unknown format in import."
The security import command does not work on the Mac agent's terminal, the SSH terminal on my local machine, or in the Jenkins job.
I would greatly appreciate any assistance in resolving this issue and finding a reliable way to install the provisioning profile using a Jenkins pipeline job.
Thank you for your attention and support.