xcodebuild icon indicating copy to clipboard operation
xcodebuild copied to clipboard

How to specify the output dir ?

Open wangzhaode opened this issue 2 years ago • 3 comments

When I used this action build a iOS project using below code:

  - uses: mxcl/xcodebuild@v1
    with:
      platform: iOS
      action: build
      configuration: release
      working-directory: project/ios
      scheme: XXX

I get the below log:

▸ xcodebuild build
.....
▸ Touching XXX.framework (in target 'XXX' from project 'XXX')
▸ Build Succeeded

Now i want to get XXX.framework and upload, but i can't find a way to set the output dir

wangzhaode avatar Jan 10 '23 12:01 wangzhaode

Not possible with the current action I believe. This action was designed for CI not CD so that makes sense. Though I agree we should support this.

It should be pretty easy to add it. We are simply a GHA wrapper around running xcodebuild, add the flag in action.yml and use it in the code.

mxcl avatar Jan 10 '23 13:01 mxcl

Thanks! Looking forward to add this arg.

wangzhaode avatar Jan 10 '23 14:01 wangzhaode

I submit a pr, please review it

wangzhaode avatar Jan 11 '23 06:01 wangzhaode