CodeMagic xcode-project use-profiles failure

huangapple go评论74阅读模式
英文:

CodeMagic xcode-project use-profiles failure

问题

我尝试使用 CodeMagic 构建 iOS 应用程序

    scripts:
      - name: 安装依赖项
        script: |
                        yarn install
      - name: 安装 CocoaPods 依赖项
        script: |
                        cd ios && pod install
      - name: 在 Xcode 项目上设置配置文件设置
        script: |
          sudo gem install xcodeproj
          sudo xcode-project use-profiles          
      - name: 为分发构建 IPA
        script: |
          xcode-project build-ipa \
            --workspace "$CM_BUILD_DIR/ios/$XCODE_WORKSPACE" \
            --scheme "$XCODE_SCHEME"          
   

但我遇到了以下问题:未能为 node_modules/react-native-fast-image/ios/FastImage.xcodeproj 设置代码签名设置。它发生在这一步:

sudo xcode-project use-profiles
英文:

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

得分: 1

使用以下代码解决此问题:

xcode-project use-profiles --project ios/*.xcodeproj
英文:

To anyone having this issue use this

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

huangapple
  • 本文由 发表于 2023年6月19日 00:44:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76501594.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定