I got this mail from Apple when I tried to submit build after upgrading watchOS. Bitcode
was not enabled in the whole app before.
Dear developer, We have discovered one or more issues with your recent delivery for "event****". To process your delivery, the following issues must be corrected: Invalid Executable - The executable 'ProjectName.app/Watch/ProjectName WatchKit App.app/PlugIns/ProjectName WatchKit Extension.appex/ProjectName WatchKit Extension' does not contain
bitcode
. Though you are not required to fix the following issues, we wanted to make you aware of them: WatchKit 1.0 - Your previous version used an extension for Apple Watch but your current version doesn’t. Users who haven’t updated their Apple Watch to watchOS 2 or later may lose access to their Apple Watch extension. Once the required corrections have been made, you can then redeliver the corrected binary.
I have googled and followed this link which seems helpful to me but It didn't.
Bitcode WatchOS3 - how to generate
I have one doubt, In my project for iOS targets, bitcode
settings are in build option under Build settings but for watchOS targets it comes in User defined settings under build settings.
When I tried to set its value to yes and go ahead to archive the build, at the time of exporting the IPA file it shows the contents of the target, in which it is always showing bitcode
is not included. Why it is happening even after setting the yes value, I am totally confused.
I want to set the bitcode value to yes for only watchOS targets.
Thanks