mPaaS client upgrade baseline stepped pit (iOS)

1. Open the project, open mPaaS plug on xcode, click on the upgrade baseline. Time will be a little longer. There are two versions you can choose 10.1.32 and 10.1.60.

2. The start has been upgraded to version 10.1.32, click to confirm the upgrade. Do not upgrade to half of the exit, be sure to see a successful upgrade of bomb box or an error occurs

3. see "baseline upgrade success" can Build the project, and then an error

Solution: After you upgrade this document did not

The original contents of the file are set to upload log server address, belong MPDiagnosis.framework, that a new version of it?

The old and new APLogUser.m compare

4. It should be of no use, the new version directly deleted, continue to build,

Error:

Solve: PushService In the old part of MPPushSDK.framework

Comparison of old and new adds several methods

Error in the file header plus #import <MPPushSDK / MPPushSDK.h> resolved

5. recompile or another problem, supra,

Then no problem. . . . . . . . .

6. upgrade 10.1.60

H5WebViewController repeated,

Nebula.framework/Headers/H5WebViewController.h:18:12: note: previous definition is here

There is also a framework will therefore own H5WebViewController removed, remove references

 

7.继续build,<NebulamPaaSBiz/NARequestManager.h>这个报错没找到

应该是新版中类名和方法名都改了,加了 “MP”,加上后问题解决,继续编译

8.APLogUser报错

应该是没有引用头文件,看旧版这个类属于MPDiagnosis.framework

引入#import <MPDiagnosis/MPDiagnosis.h> 后编译

9.image的一个方法修改了名字,修改即可

 

10.再编译 @2x图片报错 不管 继续编译

成功

11.点击离线包 闪退

https://tech.antfin.com/docs/2/129797# h5升级指南中

自定义的所有 H5 页面的基类,必须是 H5WebViewController 的子类。

12.替换基类 ,编译报错,两个原来基类的属性问题,直接复制过来,还有两个方法,把声明也复制过来。

运行  ,可以打开了   导航条样式需要改一下

 

 

 

 

 

 

 

 

发布了120 篇原创文章 · 获赞 15 · 访问量 17万+

Guess you like

Origin blog.csdn.net/qq_15509071/article/details/100158829