Category Archives: Hack Space

Swift and Objective-C tweak supporting

With increment of swift, it's not ridiculous that using swift when you do some jailbreak development. If the tweak can get a better UI and I can code easier, there is no reason to refuse swift.

But one thing we should care about is that, Xcode 6 (and later) will link swift's dylib something like @rpath/libswiftDarwin.dylib.

That means if you didn't put those dylib files into a directory named `Frameworks` which right under your executable file's directory, it will just crash when you try to launch them.

Continue reading Swift and Objective-C tweak supporting

自动生成简单Java程序的UML图

最近Java实验课老是要求画出UML图,各种麻烦。。。

于是就写了这样一个东西,传入一个(或多个)Java源代码的path,然后得到该源代码的UML图,不过只能是一些写得比较简单的Java源代码,在复杂的情况下可能会出现错误的解析。得到的文件是一个(或多个)与Java源代码文件同名的HTML文档。

本来想用php的GD库,不过Mac下的GD库编译安装太麻烦了,于是就放弃了。果然还是直接在网页上截图吧,至少比自己去画方便一些了w

Continue reading 自动生成简单Java程序的UML图