Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode "Do not submit apps with GCC-style coverage" iOS upload processing error

Tags:

xcode

ios

gcc

This only happens post app store upload and during processing.

Relevant settings for all targets:

CLANG_ENABLE_CODE_COVERAGE = NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO

enter image description here enter image description here Can someone point to a config setting that could resolve this very recent issue with Xcode Version 7.2 (7C68)? Uploads have been fine until this point and no related config changes have been made.

The specific error:

Dear developer,

We have discovered one or more issues with your recent delivery for "The App Name". To process your delivery, the following issues must be corrected:

Invalid Bundle - Do not submit apps with GCC-style coverage instrumentation enabled. Specifically, the following Xcode build settings should be disabled: Instrument Program Flow Generate Test Coverage Files

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team

like image 494
Nick Avatar asked Jan 03 '16 21:01

Nick


2 Answers

To work around this issue I set "Enable Bitcode" to "No" at the project level, which was it was previously set to and the last known good setting.

like image 153
Paul Young Avatar answered Oct 29 '22 22:10

Paul Young


There are two relevant settings which should be NO for the Release configuration:

GCC_GENERATE_TEST_COVERAGE_FILES = NO;
and
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO;

Or in Xcode, under Build Settings > Apple LLVM 7.0 - Code Generation

Xcode Settings

I found that the Enable Code Coverage Support (CLANG_ENABLE_CODE_COVERAGE) is not required to be disabled. Vanilla Xcode projects have this enabled by default.

Also, of course you only need to make sure that the GGC settings are disabled for the Release configuration, assuming that's used for Archive.


3rd party frameworks

Finally note that if your project includes any 3rd party frameworks, all of these frameworks also need to be build using the above settings.

Unfortunately Apple iTunes Store's email doesn't tell you which project or framework failed, so debugging this might involve some trial and error.

like image 24
Dirk van Oosterbosch Avatar answered Oct 29 '22 21:10

Dirk van Oosterbosch