I'm trying to build an extension project and Xcode keeps throwing the error in subject.

Needless to day, the extension's bundle id is prefixed with app's bundle id.
Product Name: ro.chitza.TodayPics.$(TARGET_NAME:rfc1034identifier

I've tried cleaning the build folder and rebuilding, no luck. The funny thing is the entire project got built for a few times, but after some code and UI changes it started failing. Even if I create new projects, the same thing happens after about 5-6 builds.
Did anyone else encounter this error? Any hints for a solution or workaround?
 
     
    
 
     
     
     
     
    
 
     
     
     
     
     
     
     
    
 
    
 
    

 
     
     
     
     
     
     
     
     
     
     
    