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

IOS failed to replace local failure with new success #938

Closed
flyjennyetn opened this issue Jul 24, 2017 · 13 comments
Closed

IOS failed to replace local failure with new success #938

flyjennyetn opened this issue Jul 24, 2017 · 13 comments
Assignees
Labels

Comments

@flyjennyetn
Copy link

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Description

ios 跟新成功,替换本地失败
IOS failed to replace local failure with new success

Additional Information

"react-native": "0.46.2",
"react-native-code-push": "^4.0.0-beta",

  • iOS version: Newest
@sergey-akhalkov
Copy link
Contributor

Hi @flyjennyetn, thanks for reaching us. Could you please fill out all points from the new issue template - repro steps, stack trace and etc. so we would be able to help you.

@sergey-akhalkov
Copy link
Contributor

@flyjennyetn, could you please clarify what the issue is? (provide us stack trace, screenshot or so). Also please provide us exact repro steps how we could reproduce it.

@flyjennyetn
Copy link
Author

@sergey-akhalkov
Copy link
Contributor

sergey-akhalkov commented Jul 25, 2017

Hi @flyjennyetn, thanks for providing us with source codes, could you please clarify how could we reproduce the issue and what the issue is? Also I can see that your index.ios.js file is not CodePush'ified.

@flyjennyetn
Copy link
Author

@sergey-akhalkov I'm sorry , I uploaded the wrong project ,Now has been updated

@sergey-akhalkov
Copy link
Contributor

sergey-akhalkov commented Jul 26, 2017

Hi @flyjennyetn, if I get it right, you are trying to configure your initial project with CodePush.
So, you could follow this steps:

  1. code-push app add myapp-ios ios react-antive
  2. react-native init myapp
  3. cd myapp
  4. npm i --save react-native-code-push
  5. react-native link react-native-code-push
  6. replace index.android.js and index.ios.js files from your project with related files from here. Also copy and paste images folder and demo.js file.
  7. react-native run-ios

Please also take a look at #893 (comment), there you can find configured project (that using multi-deployment-testing feature for iOS) and use it as an example.

So I'm closing this for now, please feel free to reopen if you have any questions. In case you have any issues, please create new one and do important thing - please use the following template to create the issue, otherwise, we'll mark it as incomplete and close.

@wuyunqiang
Copy link

@flyjennyetn hi 我也遇到这个问题 请问你是怎么解决的啊 还有本地的文件会不会在重新loading后 覆盖codepush更新的文件啊?

@flyjennyetn
Copy link
Author

@wuyunqiang 还没有解决 ,ios都覆盖不了

@wuyunqiang
Copy link

你不是说是你上传错了么? 你是直接run ios么? 打包后可以么?我不太懂iOS的

@sergey-akhalkov
Copy link
Contributor

Hi @wuyunqiang, thanks for reaching us. If I get it right we can continue the discussion here #941, I'll take a look at the issue you've created and let you know if I have any questions.

@joey5628
Copy link

joey5628 commented Feb 5, 2018

@wuyunqiang 你们问题有解决吗?我的项目也是安卓成功,iOS第一个热更新成功,后边的都会失败,我看download请求成功了

@wuyunqiang
Copy link

我的问题已经解决 我是在debug模式下更新后本地文件后替换掉下载后的文件因此看不到结果 release是正常的。具体参考:#941
安卓成功 证明服务器配置是没有问题
iOS第一次更新成功 后面失败 可能是你更新后的代码有问题吧或者看一下你iOS的配置@zhangyi5628
也可以参考:wuyunqiang/ReactNativeUtil#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants