ios:模拟触摸:尝试私人框架时的错误

我试图在iOS中模拟触摸。 在这里有一些指针build议我可以在私有框架中尝试GraphicsServices / GSEvent.h。 但是,当我按照这里的步骤,我得到这些错误:

Undefined symbols for architecture armv7: "_GSCopyPurpleNamedPort", referenced from: -[TestGraphicsServicesAppDelegate application:didFinishLaunchingWithOptions:] in TestGraphicsServicesAppDelegate.o "_GSSendEvent", referenced from: -[TestGraphicsServicesAppDelegate application:didFinishLaunchingWithOptions:] in TestGraphicsServicesAppDelegate.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

任何build议? 谢谢

编辑:我使用的代码来自使用GraphicsServices.h / GSEvent,以及与Xcode编译CLI iPhone工具 。

看起来错误来自这一行。

  mach_port_t thePortOfApp = GSCopyPurpleNamedPort... GSSendEvent(&record, thePortOfApp); 

好的,我想我在添加框架时犯了一些错误。 不知何故,我现在就得到了我的项目。

我做了几件事后,错误消失了。 在“ 生成设置”中 ,我将“始终search用户path”更改为“ 是” 。 在“ 用户标题searchpath”中添加了私有标题的path 。 此外,在“ 生成词组”选项卡中 ,我将链接二进制库中的graphics服务添加到部分。

现在我可以做简单的东西,如GSEventLockDevice()和模拟按下主页button。 仍然没有关于触摸的线索。