Xcode Post Build Copy File Actions

前端 未结 2 490
情话喂你
情话喂你 2021-01-06 08:35

In Xcode, how can I call a \'shell script\' which is a PERL script that copies the .app and .dsym files to a different directory?

I want to

2条回答
  •  佛祖请我去吃肉
    2021-01-06 09:33

    For anyone else who is wondering, you can also do a simple copy via

    [Click on Scheme Name] -> Edit Scheme... -> [Select Scheme] -> Run "Target" -> Post-actions

    and add a cp command. In my case, for quick testing and ease of use, I wanted to copy my binary back to the project directory so that I could process some data files. I used the following:

    cp ${TARGET_BUILD_DIR}/${TARGET_NAME} ${PROJECT_DIR}/"binaryFileName"
    

提交回复
热议问题