Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么我在项目中集成JSPatch总是crash? #44

Closed
manwithstories opened this issue Jun 24, 2015 · 2 comments
Closed

为什么我在项目中集成JSPatch总是crash? #44

manwithstories opened this issue Jun 24, 2015 · 2 comments

Comments

@manwithstories
Copy link

我想在项目中集成了JSPatch 但是总是报 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'js exception,
msg: Can't find variable: require

郁闷的是在同样的JS文件在DEMO中可以正常加载,但是一合到我们的实际工程中就是报错。
这个错误什么原因导致的呢?

@bang590
Copy link
Owner

bang590 commented Jun 24, 2015

应该是没有读取到JSPatch.js文件,检查一下JSPatch.js是否有引入项目?读取这一行:
https://github.com/bang590/JSPatch/blob/master/JSPatch/JPEngine.m#L178

@bang590
Copy link
Owner

bang590 commented Jun 24, 2015

对于找不到JSPatch.js文件的情况已加assert,方便排查

@bang590 bang590 closed this as completed Jun 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants