title: Failed to create ipa for Adhoc through Codemagic
body: <p>I am trying to generate the ipa through Codemagic, but it's pass all the script and failed to generate ipa</p>
  <pre><code>workflows:
    prod-adhoc:
      name: Production Build - AdHoc Distribution
      environment:
        vars:
          XCODE_WORKSPACE: &quot;project.xcworkspace&quot;
          XCODE_SCHEME: &quot;project&quot;
          BUNDLE_ID: &quot;com.project.app&quot;
          APP_STORE_CONNECT_ISSUER_ID: Encrypted()
          APP_STORE_CONNECT_KEY_IDENTIFIER: Encrypted()
          APP_STORE_CONNECT_PRIVATE_KEY: Encrypted()
          CERTIFICATE_PRIVATE_KEY: Encrypted()
        xcode: latest
        cocoapods: default
      scripts:
        - find . -name &quot;Podfile&quot; -execdir pod install \;
        - name: Set up keychain to be used for codesigning using Codemagic CLI 'keychain' command
          script: keychain initialize
        - name: Fetch signing files
          script: # You can allow creating resources if existing are not found with `--create` flag
              app-store-connect fetch-signing-files $BUNDLE_ID --type IOS_APP_ADHOC --create
        - name: Set up signing certificate
          script:
            xcode-project use-profiles
        - name: Increment build number
          script: agvtool new-version -all $BUILD_NUMBER
        - name: Build ipa for Adhoc
          script: xcode-project build-ipa --workspace &quot;$XCODE_WORKSPACE&quot; --scheme &quot;$XCODE_SCHEME&quot; --verbose
      artifacts:
        - build/ios/ipa/*.ipa
        - /tmp/xcodebuild_logs/*.log
        - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
      publishing:
        email:
          recipients:
            - neha@gmail.com
  </code></pre>
  <p>❌  error:  No signing certificate &quot;iOS Distribution&quot; found: No &quot;iOS Distribution&quot; signing certificate matching team ID &quot;XXXXX&quot; with a private key was found. (in target 'project' from project 'project')</p>
  <p>❌  error: No signing certificate &quot;iOS Distribution&quot; found: No &quot;iOS Distribution&quot; signing certificate matching team ID &quot;xxxxxx&quot; with a private key was found. (in target 'OneSignalNotificationServiceExtension' from project 'project')</p>
  <p>I had checked with project setting it's on Automatic</p>