Turn on capabilities
-
Ok so I have found some more info.
When I turn on one capability I get a .entitlements file that is placed at the root of the project.It is then used with xcodebuild CODE_SIGN_ENTITLEMENTS="myApp.entitlements".
So I retrieved the file and now am copying it prior to the build in the build folder. Only thing missing is to pass the flag to xcodebuild from the .pro file