Skip to content

Instantly share code, notes, and snippets.

@Hendrik44
Created September 18, 2017 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hendrik44/8ab3ce687f04c632db59a1772419703d to your computer and use it in GitHub Desktop.
Save Hendrik44/8ab3ce687f04c632db59a1772419703d to your computer and use it in GitHub Desktop.
FIX invalid-bundle error Xcode 9
# This describes a fix for:
# "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."
# 1. Go to your Project root directory and run the following command:
carthage update
# 2. Set test-coverage for all frameworks to NO
grep -lR "codeCoverageEnabled" --include *.xcscheme --null Carthage | xargs -0 sed -i '' -e 's/codeCoverageEnabled = "YES"/codeCoverageEnabled = "NO"/g'
# 3. build your modified carthage checkouts/frameworks
carthage build --platform iOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment