I need to run a native Xcode build script during the iOS build in Ionic Appflow.
For e.g I am using cordova-plugin-salesforce-snapins plugin and as per their documentation we need to run these scripts:
select Build Phases
create Run script
paste this line of code $PODS_ROOT/ServiceSDK/Frameworks/ServiceCore.framework/prepare-framework
It is possible in Xcode but there is no such way to achieve this in ionic Appflow.
Please help me to configure this.
I use the npm plugin
cordova-node-xcode, which allows you to write the build phase to the generated Xcode project file. Add"xcode": "^3.0.1"to your devDependencies in package.json.Call a .js script
AddBuildScript.jsfrom a Cordova "after_build" hook in yourconfig.xml:Script
AddBuildScript.js: