本机脚本:添加运行脚本阶段

时间:2019-03-05 21:13:36

标签: ios nativescript nativescript-plugin

嗨,我正在开发一个插件来包装AppDynamics。

我需要根据本文档https://docs.appdynamics.com/display/PRO45/Upload+the+dSYM+File

进行以下操作
In Xcode, select your project from the Project Navigator.
Click on the application target.
Select the Build Phase tab in the Settings editor.
Click the + icon in the upper left corner of the main panel.
Select New Run Script Phase from the dropdown.
In the script box, add the following lines:

export ADRUM_ACCOUNT_NAME="<Account_Name_HERE>" // From the View License - End User Monitoring section of the License Page
export ADRUM_LICENSE_KEY="<License_Key_HERE>"  // From the View License - End User Monitoring section of the License Page
SCRIPT=$(/usr/bin/find "${SRCROOT}" -name xcode_build_dsym_upload.sh | head -n 1)
/bin/sh "${SCRIPT}"

但是,由于每次都重新生成平台文件,我可以通过钩子来执行此操作吗? xcode_build_dsym_upload.sh是podFile的一部分,当我尝试使用钩子(我认为这是在xCode构建之前)时,我遇到了no file or directory found错误。

有什么想法吗?

0 个答案:

没有答案