yukiarrr / ios-build-action

Build iOS project (.xcodeproj, .xcworkspace), and export ipa
MIT License
284 stars 139 forks source link

Issue while setting Path #20

Closed vardans6 closed 4 years ago

vardans6 commented 4 years ago

image image

vardans6 commented 4 years ago

Please help

vardans6 commented 4 years ago

@yukiarrr

yukiarrr commented 4 years ago

@vardans6 Sorry for the late response. Thanks for creating the Issue! I have one question. What are you doing before using ios-build-action? I'd like to see your yaml.

vardans6 commented 4 years ago

name: iOS-workflow

on: push: branches: [ master ]

pull_request:

branches: [ master ]

jobs: build: name: Build and Test using iPhone simulator runs-on: macos-latest

steps:
  - uses: yukiarrr/ios-build-action@v1.1.1
    with:
      project-path: Yobored.xcodeproj
      p12-base64: ${{ secrets.P12_BASE64 }}
      mobileprovision-base64: ${{ secrets.MOBILEPROVISION_BASE64 }}
      code-signing-identity: ${{ secrets.CODE_SIGNING_IDENTITY }}
      team-id: ${{ secrets.TEAM_ID }}
      #workspace-path: Yobored.xcworkspace
      export-method: development
      configuration: Debug
      certificate-password: ${{ secrets.PASS }}

@yukiarrr

yukiarrr commented 4 years ago

@vardans6 Thanks! Do you use actions/checkout@v2? To build the repository, you need to do checkout first.

- name: Checkout
  uses: actions/checkout@v2
vardans6 commented 4 years ago

@yukiarrr Sir Problem is, I have to install 3 provisioning profiles, how can I do this?

yukiarrr commented 4 years ago

@vardans6 Since you're getting an error with Path is invalid, I'm thinking of the following as causes.

Do you know anything about it?

vardans6 commented 4 years ago

@ Sir that issue has been resolved.. thanks for that added checkout and its got path.. How to give multiple provisioning profiles to install?

vardans6 commented 4 years ago

@yukiarrr

image

yukiarrr commented 4 years ago

@vardans6 With disable-targets, you can specify targets that not use automatic code signing and instead use provisioning profile specified in Inputs. So I think you would be good to use ios-build-action for each provisioning profile.

vardans6 commented 4 years ago

@vardans6 With disable-targets, you can specify targets that not use automatic code signing and instead use provisioning profile specified in Inputs. So I think you would be good to use ios-build-action for each provisioning profile.

@yukiarrr Sir invited you collaborate in project please update, i am not understanding how to do that

yukiarrr commented 4 years ago

OK! I'll check back in a few days' time.

vardans6 commented 4 years ago

Sure

yukiarrr commented 4 years ago

With disable-targets, you can specify targets that not use automatic code signing and instead use provisioning profile specified in Inputs. So I think you would be good to use ios-build-action for each provisioning profile.

I have found that the above method cannot be built. So I pushed a new branch that added support for multiple profiles.

- uses: yukiarrr/ios-build-action@support-multi-profiles
  with:
    ...
    multi-mobileprovision-base64: |
      {
        "${{ secrets.MOBILEPROVISION_BASE64 }}": ["Yobored"],
        "${{ secrets.BASE64_MOBILEPROVISION_CHATNOTIFICATIONS }}": ["ChatNotificationExtension"],
        "${{ secrets.BASE64_MOBILEPROVISION_SHARE }}": ["ShareToYobored"],
      }
    ...

Note that You can verify this above, but it's only temporary, so when branch of support-multi-profiles is removed, it results in an error. @vardans6 Did the above succeed?

vardans6 commented 4 years ago

With disable-targets, you can specify targets that not use automatic code signing and instead use provisioning profile specified in Inputs. So I think you would be good to use ios-build-action for each provisioning profile.

I have found that the above method cannot be built. So I pushed a new branch that added support for multiple profiles.

- uses: yukiarrr/ios-build-action@support-multi-profiles
  with:
    ...
    multi-mobileprovision-base64: |
      {
        "${{ secrets.MOBILEPROVISION_BASE64 }}": ["Yobored"],
        "${{ secrets.BASE64_MOBILEPROVISION_CHATNOTIFICATIONS }}": ["ChatNotificationExtension"],
        "${{ secrets.BASE64_MOBILEPROVISION_SHARE }}": ["ShareToYobored"],
      }
    ...

Note that You can verify this above, but it's only temporary, so when branch of support-multi-profiles is removed, it results in an error. @vardans6 Did the above succeed?

@yukiarrr no that not worked, moved with azure devops pipeline

yukiarrr commented 4 years ago

OK, thanks for reporting! And multiple profiles are now supported in v1.3.0. https://github.com/yukiarrr/ios-build-action/pull/29

- uses: yukiarrr/ios-build-action@v1.3.0
  with:
    ...
    mobileprovision-base64: |
      ${{ secrets.MY_MOBILEPROVISION_BASE64 }}
      ${{ secrets.YOUR_MOBILEPROVISION_BASE64 }}
    # Need to use export-options to specify the provisioning profile to use for each executable in your app
    export-options: "path/to/exportOptions.plist"
    ...
vardans6 commented 4 years ago

OK, thanks for reporting! And multiple profiles are now supported in v1.3.0.

29

- uses: yukiarrr/ios-build-action@v1.3.0
  with:
    ...
    mobileprovision-base64: |
      ${{ secrets.MY_MOBILEPROVISION_BASE64 }}
      ${{ secrets.YOUR_MOBILEPROVISION_BASE64 }}
    # Need to use export-options to specify the provisioning profile to use for each executable in your app
    export-options: "path/to/exportOptions.plist"
    ...

@yukiarrr thanks sir, will surely try and report you