Samarth
Samarth

Reputation: 1

No signing certificate "iOS Distribution" found when exporting .ipa file from react native app with GitHub actions

I am developing react native app in windows machine and for getting .ipa file created an github workflow to generate it from GitHub actions. ** ARCHIVE SUCCEEDED ** but the ** EXPORT FAILED ** and gave "No signing certificate "iOS Distribution" found".

ExportOptions.plist file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>method</key>
  <string>release-testing</string>
  <key>signingStyle</key>
  <string>manual</string>
  <key>CODE_SIGNING_REQUIRED</key>
  <string>NO</string>
  <key>teamID</key>
  <string>1234567890</string>
  <key>compileBitcode</key>
  <false/>
  <key>thinning</key>
  <string>&lt;none&gt;</string>
  <key>signingCertificate</key>
  <string></string>
</dict>
</plist>

build_ios.yml file

name: Build iOS Unsigned IPA

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  build:
    runs-on: macos-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Set up Node.js
      uses: actions/setup-node@v3
      with:
        node-version: '16'

    - name: Set Xcode Version
      run: sudo xcode-select --switch /Applications/Xcode_15.3.app/Contents/Developer

    - name: Verify Xcode Version
      run: xcodebuild -version

    - name: Install dependencies
      run: |
        npm install
        cd ios
        pod install
        cd ..

    - name: Clean Derived Data
      run: rm -rf ~/Library/Developer/Xcode/DerivedData

    - name: Build .ipa using xcodebuild
      run: |
        xcodebuild clean \
          -workspace ios/ReactNative_Demo.xcworkspace \
          -scheme ReactNative_Demo \
          -configuration Release

        xcodebuild \
          -workspace ios/ReactNative_Demo.xcworkspace \
          -scheme ReactNative_Demo \
          -sdk iphoneos \
          -configuration Release \
          ENABLE_TESTABILITY=YES \
          -archivePath ios/build/ReactNative_Demo.xcarchive \
          CODE_SIGN_STYLE=Manual \
          CODE_SIGN_IDENTITY="Self-Signed Certificate" \
          CODE_SIGNING_REQUIRED=NO \
          CODE_SIGNING_ALLOWED=NO \
          DEVELOPMENT_TEAM="" \
          archive

        xcodebuild -exportArchive \
          -archivePath ios/build/ReactNative_Demo.xcarchive \
          -exportPath ios/build \
          -exportOptionsPlist ios/ExportOptions.plist \
          CODE_SIGN_STYLE=Manual \
          CODE_SIGN_IDENTITY="Self-Signed Certificate" \
          CODE_SIGNING_REQUIRED=NO \
          CODE_SIGNING_ALLOWED=NO

    - name: Upload .ipa to Artifacts
      uses: actions/upload-artifact@v3
      with:
        name: ios-build
        path: ios/build/*.ipa

I have tried CODE_SIGN_IDENTITY="" , but it didn't work.

Upvotes: 0

Views: 16

Answers (0)

Related Questions