In which Macbook Xcode run smoothly?
Most development work is typing and waiting for compilation to complete. This is possible on any modern Mac.

Both the MacBook Air and MacBook Pro will run Xcode. Developing software can stress any Mac, including highly specified Mac Pros.

It is unlikely anyone can clearly and definitely answer your question. All answers, including mine will be based on opinion and personal experience.