Update: I tried to explicitly allow the script access to the keychain. I also temporarily tried to give access to all users. Both didn't change anything
I'm currently setting up my dev environment for developing an app with flutter. I tried to set it up so that i can develop(code) on windows while testing the app on IOS. The flow I'm trying to get working is as follows:
I currently am able to build the app on my mac and it starts on my iphone when i build directly from my mac, but when I run the exact same script through ssh from my windows machine, the build fails at signing it seems.
I fixed it by creating a separate keychain for building the app, imported the developer certificate into it. In my script that i run remotely, i unlock this keychain and voila the build now runs just like it does when i run it from the mac directly