Can't run script

I have a build script that looks like this

#!/bin/bash
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

/profile

despite i attached the profile and copied it inside the build.sh 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

See https://travis-ci.org/ShKhan9/VideoTester/builds/523106555#L1524.

I see a file named cer.cer in your repo. I’ve opened a PR to reference it instead of cert.cer: https://github.com/ShKhan9/VideoTester/pull/1.

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 ?