0

微調整、実際には設定部分に問題があります。「パッケージをインストールする」と、環境設定に関連する数十のエラーが表示されます。

Tweak.xm には #import がデフォルトで追加されています。私の IOS (つまり 5.1.1) の Web で見つけたヘッダーには、preferences.h がありません。しかし、自分で作成して残りのヘッダーに追加しても、ターミナルはpreferences.hと残りのヘッダーに関連する多くのエラーを表示します。

これらのエラーを取り除き、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
4

1 に答える 1

1

Andy Ibanez のおかげで、この問題は解決しました。問題はヘッダー IOSurfaceAPI.h にありました。同様のことがここで説明されましたhttps://github.com/peterhajas/MobileNotifier/issues/316

私は github.com の rpetrich のヘッダーを使用していましたが、フォルダー「_fallback」について言及したことはありません。そのフォルダーには IOSurfaceAPI.h ヘッダーがあったので、「IOSurface」フォルダーにコピーしました。その後はすべて問題ありませんでした。同じエラーで誰かを助けることを願っています。

于 2013-02-09T21:15:09.243 に答える