JSPatch icon indicating copy to clipboard operation
JSPatch copied to clipboard

Use of unresolved identifier 'JSPatch' using Swift 4.

Open sweetmans opened this issue 7 years ago • 4 comments

JSPatchPlatform.framework 1.7.3

sweetmans avatar Jan 16 '18 09:01 sweetmans

我也是。不是路径的问题。

nullLuli avatar May 24 '18 07:05 nullLuli

怎么解决的?

chd123456 avatar Jul 03 '18 12:07 chd123456

苹果直接在编译的时候把JSPatch字样封掉了。可以直接下JSPatch开源库,然后把封掉的字样替换掉。只是这样要自己混淆。

nullLuli avatar Jul 03 '18 14:07 nullLuli

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

等等。

fanyuexiang avatar Jul 26 '18 07:07 fanyuexiang