Does Not Contain a Target Named

Note to self (and others): 

When making a Titanium mobile project if you get the error of style:

The project ‘FooApp.xcodeproj’ does not contain a target named ‘FooApp’

The problem is Name needs to match the last part of the Application Id.