When you dream that you are attracted to someone, then that person may be someone that you are attracted to on a conscious or subconscious level. Someone that you are really attracted to will naturally be on your mind a lot, so it will not be hard to see why you might be dreaming about them regularly. It might surprise you if the person that you are so attracted to in your dream is someone that you do not know well, or are flat out unattracted to in your waking life, but this usually signifies a latent desire for them that you may have been unaware of.
Above was the more common and more obvious definition of attraction that might occur in your dreams, but it is by no means the only meaning for attraction in your dreams. If you are attracted to a dream person then this would imply that the elements they embody are ones that you want to see more visibly in yourself. If you are attracted to a very beautiful person then you may wish that you were more attractive. If you are attracted to someone that is more geeky or nerdy than the average person, then this would imply that you have a desire to let your inner geek out. Don’t be afraid, nobody will judge you. And if you do know people that will judge you for your lifestyle then you need to get a new group of friends, because judgmental individuals will only lead to making you feel bad about yourself and your qualities that you possess.
When you dream that someone else is attracted to you, then this would usually imply that you want people to like you more. This does not mean in a romantic sense but in a general sense. You want others to be more accepting of your ideas and you want it to be easier for you to fit into social groups. This could also just be a desire for a specific person to like you, especially if that person is someone that you desire closeness to in waking life. You desperately seek the approval of one of your friends or acquaintances, and if you see this person being attracted to you in your dreams then it means that this is the person that you want the approval of.
If you see that you are attracted to someone in your dream that you are at odds with, or someone that you do not like, then this would signify that you need to bridge the gap between you and them and find some common ground that you can both relate to. You may come up on a situation in life in which you will have to rely on unexpected associates. Befriending someone that you were formerly displeased with would be a great way to keep yourself prepared for the future. It is also just a great show of human kindness in general.