6
votes

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

2
What are the build settings for "Generate Test Coverage Files" and "Generate Profiling Code"? - Paul Young
"Generate Test Coverage Files" does not exist, only "Generate Legacy Test Coverage Files" set to NO. - Nick
"Generate Profiling Code" is set to NO. - Nick
Sounds like a problem on their end. Maybe use a Technical Support Incident if you're not getting anywhere. - Paul Young
I'm having the same issue. - Jeef

2 Answers

1
votes

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.

1
votes

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.