Closed vardans6 closed 4 years ago
Please help
@yukiarrr
@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.
name: iOS-workflow
on: push: 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
@vardans6 Thanks!
Do you use actions/checkout@v2
?
To build the repository, you need to do checkout first.
- name: Checkout
uses: actions/checkout@v2
@yukiarrr Sir Problem is, I have to install 3 provisioning profiles, how can I do this?
@vardans6
Since you're getting an error with Path is invalid
, I'm thinking of the following as causes.
xcodeproj
does not existYobored.xcodeproj
has changedDo you know anything about it?
@ Sir that issue has been resolved.. thanks for that added checkout and its got path.. How to give multiple provisioning profiles to install?
@yukiarrr
@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 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 useios-build-action
for each provisioning profile.
@yukiarrr Sir invited you collaborate in project please update, i am not understanding how to do that
OK! I'll check back in a few days' time.
Sure
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?
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
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"
...
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