我正在构建一个简单的调整,只包含Springboard.h
标头。我在使用Theos制作时得到了这个:
这是我在构建时遇到的编译错误:
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from Tweak.xm:1:
/opt/theos/include/SpringBoard/SpringBoard.h:22: error: ISO C++ forbids declaration of ‘GSEventRef’ with no type
/opt/theos/include/SpringBoard/SpringBoard.h:22: error: expected `;' before ‘_headsetDownEvent’
/opt/theos/include/SpringBoard/SpringBoard.h:56: error: ISO C++ forbids declaration of ‘opaque_pthread_t’ with no type
/opt/theos/include/SpringBoard/SpringBoard.h:56: error: expected `;' before ‘*’ token
/opt/theos/include/SpringBoard/SpringBoard.h:64: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:64: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:64: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:102: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:102: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:102: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:103: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:103: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:103: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:107: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:107: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:107: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:108: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:108: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:108: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:110: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:110: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:110: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:122: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:122: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:122: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:130: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:130: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:130: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:131: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:131: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:131: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:132: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:132: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:132: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:133: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:133: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:133: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:145: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:145: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:145: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:147: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:147: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:147: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:148: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:148: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:148: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:149: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:149: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:149: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:150: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:150: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:150: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:151: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:151: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:151: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:152: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:152: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:152: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:153: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:153: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:153: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:158: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:158: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:158: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:165: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:165: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:165: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:202: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:202: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:202: error: expected `;' before ‘)’ token
Tweak.xm: In function ‘void _logosLocalInit()’:
Tweak.xm:15: error: ‘MSHookMessageEx’ was not declared in this scope
make[2]: *** [obj/Tweak.xm.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Peel.all.tweak.variables] Error 2
有没有人知道为什么我的导入标题会给我编译错误?
答案 0 :(得分:0)
您正在使用的标头的问题是它们包括其他私有框架,如GraphicsServices。我不相信Ryan Petrich打算用于那些用于调整开发的人。请尝试使用这些,或使用类转储自行转储它们。 https://github.com/Fr0stDev/SpringBoard-iOS5-Headers
祝你好运!