Make 的时候报错,找不到tableviewcell 还有section

需求: 编写Tweak.xm文件后, make 时报错

报错日志:

Tweak.xm:26:17: error: no known instance method for selector 'section'
        if ([indexPath section] == [self numberOfSectionsInTableView:arg1]-1)
                       ^~~~~~~
Tweak.xm:26:26: error: comparison between pointer and integer
      ('id' and 'long long')
        if ([indexPath section] == [self numberOfSectionsInTableView:arg1]-1)
            ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tweak.xm:28:3: error: unknown type name 'UITableViewCell'
                UITableViewCell * cell = [[UITableViewCell alloc]initWit...
                ^
Tweak.xm:28:30: error: use of undeclared identifier 'UITableViewCell'
                UITableViewCell * cell = [[UITableViewCell alloc]initWit...
                                           ^
Tweak.xm:37:17: error: no known instance method for selector 'section'
        if ([indexPath section] == [self numberOfSectionsInTableView:arg1]-1)
                       ^~~~~~~
Tweak.xm:37:26: error: comparison between pointer and integer
      ('id' and 'long long')
        if ([indexPath section] == [self numberOfSectionsInTableView:arg1]-1)
            ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.

具体代码:
Makefile文件:

TARGET := iphone:clang:latest:7.0
INSTALL_TARGET_PROCESSES = SpringBoard
ARCHS=arm64
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = ppctweak
ppctweak_FILES = Tweak.xm
ppctweak_FRAMEWORKS = UIKit   
include $(THEOS_MAKE_PATH)/tweak.mk

Tweak.xm文件:

%hook PPCMyViewController
@interface PPCMyViewController
- (long long)numberOfSectionsInTableView:(id)tableView;
@end
- (long long)numberOfSectionsInTableView:(id)arg1{
	return %orig + 1;
}
- (long long)tableView:(id)arg1 numberOfRowsInSection:(long long)arg2{
	if (arg2 == [self numberOfSectionsInTableView:arg1]-1)
	{
		return 2;
	}else{
		return %orig;
	}
}
- (id)tableView:(id)arg1 cellForRowAtIndexPath:(id)indexPath{
	if ([indexPath section] == [self numberOfSectionsInTableView:arg1]-1)
	{
		UITableViewCell * cell = [[UITableViewCell alloc]initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:nil];
    	cell.textLabel.text = @"123123";
    	return cell;
	}else{
		return %orig;
	}
}
- (double)tableView:(id)arg1 heightForRowAtIndexPath:(id)indexPath{
	if ([indexPath section] == [self numberOfSectionsInTableView:arg1]-1)
	{
		return 44;
	}else{
		return %orig;
	}
}
%end

不include头文件?

谢谢,解决了,最上面添加了@import UIKit;