1.我将SocketRocket.framework和MQTTFramework.framework 放到了/opt/theos/lib 下
2.我在项目里TestTweak_EXTRA_FRAMEWORKS = SocketRocket MQTTFramework
3.查看dylib信息 .otool -L /Users/xujialiang042/Desktop/testwechat/.theos/obj/debug/TestTweak.dylib /Users/xujialiang042/Desktop/testwechat/.theos/obj/debug/TestWeChat.dylib: /Library/MobileSubstrate/DynamicLibraries/TestWeChat.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 1349.13.0) /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 1348.22.0) /System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 3600.6.21) /System/Library/Frameworks/QuartzCore.framework/QuartzCore (compatibility version 1.2.0, current version 1.11.0) @rpath/SocketRocket.framework/SocketRocket (compatibility version 1.0.0, current version 1.0.0) @rpath/MQTTFramework.framework/MQTTFramework (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
4.运行微信时,日志显示library not loaded @rpath/SocketRocket.framework/SocketRocket …