You might be hitting a known issue (r. 143521228), but it depends if your project configuration matches the details of the known issue.
In your build settings, you should examine the value of DEVELOPMENT_ASSET_PATHS
. You may have a directory set which contains Swift source code, in addition to assets, and in particular, that Swift source code contains the file containing your @main
definition. The workaround to this is to either move the source code out of the directory defined in DEVELOPMENT_ASSET_PATHS
, or to modify the build setting to point to a different directory containing only the assets for development.
If that doesn't reflect how your project is configured, we'd appreciate you filing a bug report with your project attached, if that's feasible for you. If you are able to file a bug because the above workaround doesn't help you, please post the FB number here for the record.
— Ed Ford, DTS Engineer