theos iosopendev各种蛋疼的问题

1.xcrun: error: unable to find utility “codesign_allocate”, not a developer tool or in PATH

可能原因,xcode版本问题,这个鸟机器是昨天又换过来的,结果上面两个xcode 4.6 和xcode 5 preview。蛋疼啊,折腾这么多东西。这个问题只要执行下面的命令将默认的xcode设置为4.6基本就可以解决了

sudo xcode-select -switch /Applications/Xcode4.6.app/Contents/Developer/

2.执行make package的时候提示如下的错误:

theos make: *** [internal-package] Error 2

话说这个鸟东西搜索了一下还没找到是什么原因导致的,后来想到可能是路径或者工程名的问题,于是修改了一下工程下的control文件原内容为:

Package: com.mars.ssl_hook

Name: SSL_HooK

Depends: mobilesubstrate

Version: 0.0.1

Architecture: iphoneos-arm

Description: An awesome

MobileSubstrate tweak!

Maintainer: obaby

Author: obaby

Section: Tweaks
Continue Reading

Hooking library calls on Mac using DYLD_INSERT_LIBRARIES

QQ20130410-1
Mac offers a way to override functions in a shared library with DYLD_INSERT_LIBRARIES environment variable (which is similar to LD_PRELOAD on Linux). When you make a twin brother of a function that is defined in an existing shared library, put it in you a shared library, and you register your shared library name in DYLD_INSERT_LIBRARIES, your function is used instead of the original one. This is my simple test. Here I’ve replaced f() in mysharedlib.dylib with f() in openhook.dylib.

Continue Reading

iPhone5 QQ音乐文件导出

本来直接向从文件共享里拉出来,但是却发现这个鸟程序没有文件共享,蛋疼。

不过随便去目录下搜索了下还是能找到文件在什么地方的,什么tm0,tm3之类的文件,全部下载下来就行了。

位于qq程序的/Documents/iMusic目录下,iMusic哈哈,什么都要i开头,蛋疼啊。

下载下来直接用命令全部重命名为mp3就行了:

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\obaby>i:

I:\>cd I:\Music\iMusic

I:\Music\iMusic>ren *.tm0 *.mp3

I:\Music\iMusic>ren *.tm3 *.mp3

I:\Music\iMusic>

改名之后用mp3tag批量吧文件名替换为tag就行了。哈哈。

当然了大多数播放器会读取标签来显示,不会显示这些乱七八糟的文件名,但是去找文件的时候还是比较蛋疼,这样世界就清净多了。哈哈。