This paper considers the problem of adaptive control against deception attacks for a class of switched nonlinear cyber-physical systems (CPSs), in which each subsystem has more general and unknown nonlinearities. Specifically, an adaptive controller is designed for CPSs with unknown switching mechanisms to mitigate the impact of state-dependent sensor attacks and input-dependent actuator attacks. Compared with the existing researches, the actuator attacks considered in our paper are input-dependent, which means the controller is substantially attacked, besides, the signs of unknown time-varying gains caused by state-dependent sensor attacks and input-dependent actuator attacks are all unknown. To deal with these scenarios, Nussbaum-type functions are introduced. In addition, by constructing a common Lyapunov function for all subsystems, the closed-loop system signals are proved to be globally bounded under arbitrary switchings. Finally, we give a simulation example of a continuously stirred tank reactor system with state-dependent sensor attacks and input-dependent actuator attacks to illustrate the effectiveness of our results.