gpt4 book ai didi

ios - Theos 偏好错误

转载 作者:行者123 更新时间:2023-11-29 04:09:41 26 4
gpt4 key购买 nike

我的调整有问题,实际上是设置部分。当我“make package install”时,它给了我几十个与首选项相关的错误。

在Tweak.xm中默认添加了#import。我在网上找到的 IOS(即 5.1.1)的 header 没有preferences.h。但即使我自己创建它并将其添加到其余的 header 中,终端也会给我带来很多与preferences.h 和其余 header 相关的错误。

请告诉我如何消除这些错误并通过 Theos 添加简单的首选项(设置)。

这是我改变后得到的#import<Preferences/Preferences.h>#import<Preferences/PSListController.h> :

Compiling prefs.mm...
In the file included from /var/mobile/greet/theos/include/Preferences/PSListController.h:7,
from prefs.mm:1:
/var/var/mobile/greet/theos/include/Preferences/PSViewController.h:7:29: error: UIViewController.h: No such file or directory
cclobjplus: warnings being treated as errors

In the file included from /var/mobile/greet/theos/include/Preferences/PSController-Protocol.h:7,
from /var/mobile/greet/theos/include/Preferences/PSViewController.h:9,
from /var/mobile/greet/theos/include/Preferences/PSListController.h:7,
from prefs.mm:1:
/var/mobile/greet/theos/include/Preferences/NSObject-Protocol.h:7: warning: duplicate declaration for protocol 'NSObject'
In the file included from /var/mobile/greet/theos/include/Preferences/PSListController.h:7,
from prefs.mm:1:
/var/mobile/greet/theos/include/Preferences/PSViewController.h:11: error: expected ';' before '<' token
In the file included from /var/mobile/greet/theos/include/Preferences/PSListController.h:10,
from prefs.mm:1:
/var/mobile/greet/theos/include/Preferences/UIActionSheetDelegate-Protocol.h:9: warning: duplicate declaration for protocol 'UIActionSheetDelegate'
In the file included from /var/mobile/greet/theos/include/Preferences/PSListController.h:11,
from prefs.mm:1:
/var/mobile/greet/theos/include/Preferences/UIAlertViewDelegate-Protocol.h:9: warning: duplicate declaration for protocol 'UIAlertViewDelegate'
In the file included from /var/mobile/greet/theos/include/Preferences/PSListController.h:13,
from prefs.mm:1:
/var/mobile/greet/theos/include/Preferences/UITableViewDataSource-Protocol.h:9: warning: duplicate declaration for protocol 'UITableViewDataSource'
In the file included from /var/mobile/greet/theos/include/Preferences/UITableViewDelegate-Protocol.h:8,
from /var/mobile/greet/theos/include/Preferences/PSListController.h:14,
from prefs.mm:1:
/var/mobile/greet/theos/include/Preferences/UIScrollViewDelegate-Protocol.h:9: warning: duplicate declaration for protocol 'UIScrollViewDelegate'
In the file included from /var/mobile/greet/theos/include/Preferences/PSListController.h:14,
from prefs.mm:1:
In the file included from /var/mobile/greet/theos/include/Preferences/UITableViewDelegate-Protocol.h:10: warning: duplicate declaration for protocol 'UITableViewDelegate'
make[3]: *** [obj/prefs.mm.88233918.o] Error 1
make[2]: *** [internal-bundle-all ] Error 2
make[1]: *** [prefs.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

最佳答案

感谢 Andy Ibanez,问题得到了解决。问题出在 header IOSurfaceAPI.h 上。此处描述了类似的情况 https://github.com/peterhajas/MobileNotifier/issues/316

我使用了来自 github.com 的 rpetrich header ,但从未提及文件夹“_fallback”。该文件夹有 IOSurfaceAPI.h header ,因此我将其复制到“IOSurface”文件夹中。之后一切都很好。希望它可以帮助遇到同样错误的人。

关于ios - Theos 偏好错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14615782/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com