【问题标题】:Error when compiling Tweak made with THEOS编译使用 THEOS 进行的 Tweak 时出错
【发布时间】:2014-02-01 19:19:08
【问题描述】:

这是我的 Tweak.xm:

%hook Blockhead

-(float)health {
return 1;
}

%end

但是当我尝试编译它时总是得到这个错误:

make: xcode-select: Command not found
/var/mobile/myTweak/theos/makefiles/targets/Darwin/iphone.mk.21:
*** first argument to `word' function must be greater than 0. Stop.

任何帮助将不胜感激

【问题讨论】:

标签: cydia tweak theos


【解决方案1】:

我按原样编译了这部分代码,它编译得很好,没有任何警告。 看起来 include.substrate.h 中存在问题,这是否意味着 include/substrate.h?

如果您要添加基材头,在我的版本中不需要,因为它是自动添加的,请尝试不使用。

【讨论】:

  • 我的文件中没有#include 任何内容。你用的是什么设备?我现在得到一个不同的错误: make: xcode-select: Command not found /var/mobile/mytweak/theos/makefiles/targets/Darwin/iphone.mk.21: ***first argument to `word' function must大于 0。停止
  • 我使用的是 iphone 5s 和 4s。听起来你可能有一个theos问题,请尝试重新安装它。那里有几个不同的分支,我使用 theos 创建者的版本。
【解决方案2】:

必须是:

%hook Blockhead

-(float)health {
return 1.0f;
}

%end

:D FuroowHD

【讨论】:

    猜你喜欢
    • 2012-12-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多