错误提示:
ld: warning: directory not found for option ‘-L/Users/pengruding/Library/Developer/Xcode/DerivedData/hiOicq-eeaffjnilmjvpjbpsptjachlnqbi/Build/Products/Release-iphonesimulator’
ld: warning: directory not found for option ‘-F/Users/pengruding/Library/Developer/Xcode/DerivedData/hiOicq-eeaffjnilmjvpjbpsptjachlnqbi/Build/Products/Release-iphonesimulator’
ld: warning: ignoring file /opt/iOSOpenDev/lib/libsubstrate.dylib, missing required architecture x86_64 in file /opt/iOSOpenDev/lib/libsubstrate.dylib (2 slices)
Undefined symbols for architecture x86_64:
“_MSHookMessageEx”, referenced from:
_logosLocalInit() in hiOicq.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
之前还好好的,今天就突然变这样了。
新建项目-导入libsubstrate,删除xm所有行,不加代码 编译只有这样的提示
ld: warning: directory not found for option ‘-L/Users/pengruding/Library/Developer/Xcode/DerivedData/hiOicq-eeaffjnilmjvpjbpsptjachlnqbi/Build/Products/Release-iphonesimulator’
ld: warning: directory not found for option ‘-F/Users/pengruding/Library/Developer/Xcode/DerivedData/hiOicq-eeaffjnilmjvpjbpsptjachlnqbi/Build/Products/Release-iphonesimulator’
ld: warning: ignoring file /opt/iOSOpenDev/lib/libsubstrate.dylib, missing required architecture x86_64 in file /opt/iOSOpenDev/lib/libsubstrate.dylib (2 slices)
加上代码就多出两个这样的错误
Undefined symbols for architecture x86_64:
“_MSHookMessageEx”, referenced from:
_logosLocalInit() in hiOicq.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
今天我也遇到相似情况,也是用iosopendev下的logos tweak,之前是在xcode5上的一点问题都没有,现在我在一个新电脑上配的xcode6.1的环境,编译遇到
Undefined symbols for architecture x86_64:
“_MSHookMessageEx”, referenced from:
_logosLocalInit() in hiOicq.o
ld: symbol(s) not found for architecture x86_64
这样的字样,我不太认可这个问题跟Foundation.framework相关,即便我删除了这个也没啥用。
感觉像是libsubstrate的问题,但是我更换成github上iosopendev里面13年底saurik更新的也不行,再试了从pad上提取过来的最新的ios8.11的也不行,很奇怪,不知道有什么解决方法 @snakeninny
在opdendev中新建工程会有说明 #error iOSOpenDev post-project creation from template requirements (remove these lines after completed) –
Link to libsubstrate.dylib:
(1) go to TARGETS > Build Phases > Link Binary With Libraries and add /opt/iOSOpenDev/lib/libsubstrate.dylib
(2) remove these lines from *.xm files (not *.mm files as they’re automatically generated from *.xm files)