CodeMagic xcode-project use-profiles failure

313 Views Asked by At

I try to build an ios app with codeMagic

    scripts:
      - name: Install dependencies
        script: |
            yarn install
      - name: Install CocoaPods dependencies
        script: |
            cd ios && pod install
      - name: Set up provisioning profiles settings on Xcode project
        script: |
          sudo gem install xcodeproj
          sudo xcode-project use-profiles
      - name: Build ipa for distribution
        script: |
          xcode-project build-ipa \
            --workspace "$CM_BUILD_DIR/ios/$XCODE_WORKSPACE" \
            --scheme "$XCODE_SCHEME"
   

But I have this: Failed to set code signing settings for node_modules/react-native-fast-image/ios/FastImage.xcodeproj. It happens at this step:

sudo xcode-project use-profiles
1

There are 1 best solutions below

0
Magnus On

To anyone having this issue use this

xcode-project use-profiles --project ios/*.xcodeproj