iOS build error - No signing certificate

I am trying to build my app for iOS, without success (Android worked fine). I have done the following before posting:

:white_check_mark: Take a look at the build log included in the email you received from us to find out more about why your build failed - this is the build error report:

Runtime version: 4.6.21; 
AB version: 1.7.6
COMMAND:

ASSETS_ARCHIVE_URL=https://appgyver-meap-assets.s3.amazonaws.com/65630acud5n70xfuy4fgexh9s8jo?response-content-disposition=attachment%3B%20filename%3D%22assets.zip%22%3B%20filename%2A%3DUTF-8%27%27assets.zip&response-content-type=application%2Fzip&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJJSXXQRL4UNGBAXQ%2F20221111%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221111T145119Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=ca57f8315a3513a1f67915bd2e172e87be8a8676ee1cbeefc9a66e9b04a82af5  npxrnv export -p ios -s standalone_appstore -c standalone --ci --yes --skipRnvCheck --packageManager yarn --template @appgyver/orchestra-template-standalone@4.6.21 -r --xcodebuildArchiveArgs "OTHER_CODE_SIGN_FLAGS=\"--keychain\ AppGyver-578619\""

FAILED with ERROR:

│ [ error ] [export] COMMAND:
xcodebuildOTHER_CODE_SIGN_FLAGS=--keychain AppGyver-578619 -workspace /private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/platformBuilds/standalone_ios/RNVApp.xcworkspace -scheme RNVApp -sdk iphoneos -configuration Release archive -archivePath /private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/platformBuilds/standalone_ios/release/RNVApp.xcarchive
FAILED with ERROR:
error: No signing certificate "iOS Distribution" found: No "iOS Distribution" signing certificate matching team ID "SB3ZV4P7C8" with a private key was found. (in target 'RNVApp' from project 'RNVApp')
** ARCHIVE FAILED **
Command failed with exit code 65: xcodebuild OTHER_CODE_SIGN_FLAGS=--keychain AppGyver-578619 -workspace /private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/platformBuilds/standalone_ios/RNVApp.xcworkspace -scheme RNVApp -sdk iphoneos -configuration Release archive -archivePath /private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/platformBuilds/standalone_ios/release/RNVApp.xcarchive
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
error: No signing certificate "iOS Distribution" found: No "iOS Distribution" signing certificate matching team ID "SB3ZV4P7C8" with a private key was found. (in target 'RNVApp' from project 'RNVApp')
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:7930E789-42C8-4940-91B2-687D7BC95DD1, OS:15.2, name:iPad (9th generation) }
{ platform:iOS Simulator, id:342403C4-F663-4E78-8BD6-22220F8446ED, OS:15.2, name:iPad Air (4th generation) }
Error: Command failed with exit code 65: xcodebuild OTHER_CODE_SIGN_FLAGS=--keychain AppGyver-578619 -workspace /private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/platformBuilds/standalone_ios/RNVApp.xcworkspace -scheme RNVApp -sdk iphoneos -configuration Release archive -archivePath /private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/platformBuilds/standalone_ios/release/RNVApp.xcarchive
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:7930E789-42C8-4940-91B2-687D7BC95DD1, OS:15.2, name:iPad (9th generation) }
{ platform:iOS Simulator, id:342403C4-F663-4E78-8BD6-22220F8446ED, OS:15.2, name:iPad Air (4th generation) }
error: No signing certificate "iOS Distribution" found: No "iOS Distribution" signing certificate matching team ID "SB3ZV4P7C8" with a private key was found. (in target 'RNVApp' from project 'RNVApp')
at makeError (/private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/node_modules/execa/lib/error.js:60:11)
at handlePromise (/private/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/578619-ios-255972/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
│ │
│ Project location: │
│ ./platformBuilds/standalone_ios/RNVApp.xcworkspace │

:white_check_mark: Double-check that you have generated all required assets correctly: Build and Distribute your App - I followed the instructions step by step and generated both the p12 and the provisioning files, as well as uploaded all the required images (icons etc.)

My app ID is 475912
Runtime version: 4.6.21

Please help :smiling_face_with_tear:

Same issue happened to me as well. Not changing anything on the IOS certificates since latest build 3 weeks ago, did some enhancements on the app and got this exact same build error.

You have to upload the certificate every time you go to build. It’s a bug. Even if you upload it and then change images or something, you have to upload the cert again as the last thing you do before building.

Trying again now, let’s hope for the best. Thanks for the suggestion.

Upload the provision profile too.

Did this work for you? ive been struggling to build an updated version for weeks… going to give this a go and ill report back today if it worked for me. Same exact issue on iOS and another on android…

No, not yet. Will have to bump the AG Team on this once more. @timo.kapanen

Thanks for the replies guys. Unfortunately, I also noticed that uploading the ceritificate (p12) and provisioning files and clicking on “save & next” does not actually save anything. I went back just to check and they were not there. So I am guessing the configuration does not store those files and therefore the build fails. AppGyver please help! @timo.kapanen

@Dana_Aronovici Try building your app now again. There is a new build service version out and I just got my app built and delivered successfully. :wink:

I’ve already downloaded The Certificate and Provisioning Profile again, and I still get the same error!

Unfortunately it did not work, I still get the same error: error: No signing certificate "iOS Distribution" found: No "iOS Distribution" signing certificate matching team ID "SB3ZV4P7C8" with a private key was found. (in target 'RNVApp' from project 'RNVApp')
Do you have any idea what this might mean? I definitely have uploaded the p12 certificate and mobile provisioning files :frowning:

Please try to upload those certificates again as suggested by Daniel above…
I am not sure what could be the issue any more. Make sure to check the configuration and use the 4.6.22 runtime version when doing the build.
This is however reported on the bug tracker so should be fixed soon.

It finally worked! I have downloaded the p12 file again from Keychain this time, maybe this was the trick for me but not sure if this is the solution for anyone else. Everything else stayed the same.