Can't run script

I have a build script that looks like this

security list-keychains -s ios-build.keychain
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles/
cp profile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
xcrun xcodebuild -workspace VideoTester.xcworkspace -scheme VideoTester \ -archivePath VideoTester.xcarchive archive
xcrun xcodebuild -exportArchive -archivePath VideoTester.xcarchive \ -exportPath . -exportOptionsPlist ExportOptions.plist

But it gives errors when trying to push-> archive

Could you provide a link to a build that’s showing this error? Thanks!

Hi dominic , thanks for your help , the github url is

now i have a problem in signing the app to produce the archive , it says the profile doesn’t exist like


despite i attached the profile and copied it inside the script

Thanks for providing this additional information.

I’m seeing the following error in your latest build:

security: Error reading infile ./cert.cer: No such file or directory


I see a file named cer.cer in your repo. I’ve opened a PR to reference it instead of cert.cer:

Could you try this out and let me know the result?

Hi again Dominic , i tried to change it to cert.cer as the reference in script but still give the profile signing error , can you check it again ?