Only certain distribution types can reuse the same byte code.
When you export for App Store the code is optimized by xcodebuild.
This is why the Derived Data from the Testing/App Store version cannot be reused.
You might be able to disable optimization but I have never tested this and it would likely result in a slower and larger app being sent to the app store.