iOSでタッチをシミュレートしようとしています。SO には、プライベート フレームワークで 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)
なにか提案を?ありがとう
編集:私が使用したコードは、Using GraphicsServices.h/GSEvent と Xcode を使用した CLI iPhone ツールのコンパイルからのものです。
エラーはこの行からのもののようです。
mach_port_t thePortOfApp = GSCopyPurpleNamedPort...
GSSendEvent(&record, thePortOfApp);