Could not resolve type when debugging the manually build staticlib

i build the swift lib manually.first use swift frontend to generate the bitcode,then use llc to generate the objfile,finally use libtool to pack all the objfiles to a static lib.the app is work well linking such staticlib.i debug my app in xocde, when hit a breakpoint in function,xcode show all the variable name in window,but none of them has value.i input the lldb command frame variable.then console output
varname1 could not revole type
varname2 could not resolve type
.....

Did I do something wrong?