JSPatch
JSPatch copied to clipboard
Use of unresolved identifier 'JSPatch' using Swift 4.
JSPatchPlatform.framework 1.7.3
我也是。不是路径的问题。
怎么解决的?
苹果直接在编译的时候把JSPatch字样封掉了。可以直接下JSPatch开源库,然后把封掉的字样替换掉。只是这样要自己混淆。
add #import <JSPatchPlatform/JSPatch.h> in your Bridging-Header.h file Then you should use the confused code in "JSPatch.h" in stead of use “JSPatch” directly as follow:
Eb_tCode.stwa_43("you appkey") // JSPatch.startWithAppKey
Eb_tCode.strs_3x("publicKey") // JSPatch.setupRSAPublicKey
etc.
在你的桥接文件中添加#import <JSPatchPlatform/JSPatch.h>
使用“JSPatch.h”中混淆后的代码调用JSPatch。比如
Eb_tCode.stwa_43("you appkey") // JSPatch.startWithAppKey
Eb_tCode.strs_3x("publicKey") // JSPatch.setupRSAPublicKey
等等。