Mobile power sources (MPS) and unmanned aerial vehicles (UAV) are critical and flexible resources to enhance the resilience of cyber–physical distribution systems. However, they are usually independently planned and dispatched. In this paper, considering the cyber–physical interdependence, topology reconfiguration and planned distribution generator islanding, an allocation and dispatch strategy of MPSs and UAVs is proposed. Before an event, a two-stage stochastic optimization based allocation model is built to pre-position MPSs and UAVs considering the uncertainty of events. After the event, a dispatch model is proposed to identify routings of MPSs and UAVs to restore electricity services. Note that both the models are mixed-integer nonlinear three-dimensional (3D) problems. As the optimal service radius and height of a UAV are independent with other variables, these two models are decomposed into two parts, i.e., one part to calculate the optimal service radius and height, and the other to identify resilience enhancement strategy. Then the two models are transformed into a mixed-integer convex programming solved by Progressive Hedging algorithm and a mixed-integer second-order cone programming, respectively. The effectiveness is verified on the modified IEEE 33-node and 123-node test systems. Numerical results highlight the necessity of co-optimizing MPSs and UAVs on cyber–physical distribution systems.