美文网首页
iOS闪退问题记录

iOS闪退问题记录

作者: 小虾57 | 来源:发表于2018-12-11 09:37 被阅读0次

定位问题图片。

1、打一个ipa包,改为zip格式解压,进入Payload文件夹。

打开终端执行cd /Users/Desktop/test/Payload/test.app

2、用find命令定位到Assets.car文件

find . -name 'Assets.car'

3、使用 assetutil 命令导出图片的信息存储到Assets.json文件中 info后面为上面获取的路径

sudo xcrun --sdk iphoneos assetutil --info ./Assets.car > /tmp/Assets.json

4、打开生成的Assets.json文件

open /tmp/Assets.json

5、查找含有”DisplayGamut” : “P3”, “Encoding” : “ARGB-16″

还有可能是xcode10问题 https://blog.csdn.net/buyu03/article/details/83068638

ld: library not found for -lstdc++.6.0.9 的错误 

打开Build Phases--Link Binary With Libraries,删除6.0.9依赖   添加Libc++.tdb 

下载 lstdc++.6.0.9.tbd动态库 拷贝到Xcode10的真机和模拟器中

真机路径:/Applications/Xcode-.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib  

模拟器路径:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib 

libstdc++.6.0.9.tbd

由于重复文件是其他部门有依赖,所以修改了xcode的配置暂时解决了编译报错的问题。

xcode--file--Workspace Settings--Build System--legacy Build System

相关文章

网友评论

      本文标题:iOS闪退问题记录

      本文链接:https://www.haomeiwen.com/subject/eefshqtx.html