Cordova only touches *.storyboard files in the build target for iOS which is used by cordova itself
What does actually happen?
Cordova appears to map all *.storyboard files somehow and throw them out of the XCode config file.
Information
We have build an Apple Watch app with SwiftUI but want it to work on watchOS 6 as well so we need to include a storyboard file as entry point for the UI. During the Cordova build process (after the run and build hooks) something throws out the storyboard file of the XCode config file.
Command or Code
This can be reproduced in a fresh Cordova setup.
cordova create .
cordova add ios
cordova run
Store the generated XCode config as a reference
Manually add a watchOS target in XCode (make sure it uses a storyboard file it will if its set to support watchOS 6)
Compare the changes to the config file
Delete the files generated by Cordova
Now add the changes (from 6.) programatically with the hook
cordova run
Open XCode try to run the watchOS target (it will fail because there is no Interface.storyboard anymore it got removed by Cordova)
Bug Report
Problem
What is expected to happen?
Cordova only touches *.storyboard files in the build target for iOS which is used by cordova itself
What does actually happen?
Cordova appears to map all *.storyboard files somehow and throw them out of the XCode config file.
Information
We have build an Apple Watch app with SwiftUI but want it to work on watchOS 6 as well so we need to include a storyboard file as entry point for the UI. During the Cordova build process (after the
run
andbuild
hooks) something throws out the storyboard file of the XCode config file.Command or Code
This can be reproduced in a fresh Cordova setup.
cordova create .
cordova add ios
cordova run
cordova run
Interface.storyboard
anymore it got removed by Cordova)Environment, Platform, Device
macOS, iOS, not aplicable
Version information
cordova-ios: 6.2.0 XCode: 12.4 (12D4e) macOS: 11.1 (20C69)
Checklist