我在尝试编译这些项目时收到此错误。错误是
"Tweak.xm:37:21: error: cannot initialize a parameter of type 'UIView * _Nonnull' with an lvalue of type 'UITapGestureRecognizer *' [content addSubview:singleTap];"
这是我的错误的图像 link
最佳答案
关于您对 alexander-li 的回答的评论,只需在您的 Makefile 中添加这一行:
TweakName_FRAMEWORKS = UIKit
并添加 #import <UIKit/UIKit.h>
给您Tweak.xm
文件。
请在开始 Theos 开发之前先学习如何编码。这不是最简单的环境,但有很多页面可以为您提供帮助。
关于ios - 我收到 theos "cannot initialize a parameter of type"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33446507/