German Version

xCode 9, Carthage and iTunes Connect Error: “Invalid Bundle - Disallowed LLVM instrumentation”

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.

1) Source: Stack Overflow, https://stackoverflow.com/a/46226810 (2017-11-01)
en/dev/swift/xcode9carthagellvm.txt · Zuletzt geändert: 01.11.2017, 09:24 Uhr von wikiredaktion@reneknipschild.de
 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Share Alike 3.0 Unported
rkWiki wird freundlich bereitgestellt von
René Knipschild – Custom Software Development, Ihr Partner in Sachen IT-Beratung & individueller Software-Entwicklung. www.IT-Beratung-Nordhessen.de – Made in Germany
Copyleft inverted copyright sign 2012-2024 René Knipschild | www.reneknipschild.net | Impressum | Datenschutz