Dear developer, We have discovered one or more issues with your recent delivery for „YourProjectName“. To process your delivery, the following issues must be corrected: Invalid Bundle - Disallowed LLVM instrumentation. Do not submit apps with LLVM profiling instrumentation or coverage collection enabled. Turn off LLVM profiling or code coverage, rebuild your app and resubmit the app. Once these issues have been corrected, you can then redeliver the corrected binary. Regards, The App Store team
The solution1) to automate setting code coverage to false for all dependencies is to run the following command on terminal (please go to the directory of your project):
grep -lR "codeCoverageEnabled" --include *.xcscheme --null Carthage | xargs -0 sed -i '' -e 's/codeCoverageEnabled = "YES"/codeCoverageEnabled = "NO"/g'
This will set code coverage to NO and iTunes connect will not complain.
The sequence to make everything work is the following
Run
carthage update --platform iOS --no-use-binaries --no-build
This will update and download all dependecies. When Carthage start to compile you can press ctrl+c to cancel. Run the above command to set code coverage to NO Now that everything is into place run
carthage build --platform iOS
This will build everything with code coverage to NO You can now archive and upload to iTC.