remove old api in objective-c template