1. Reason- image not found
用模拟器是没有问题的,不过在真机好像是有问题,不确定是否是所有机型。
崩溃日志
1 2 3 4 5 |
dyld: Library not loaded: @rpath/Pods.framework/Pods Referenced from: /var/mobile/Containers/Bundle/Application/3A970A35-A52F-45D7-A4D5-55C849349C75/QuanJie.app/QuanJie Reason: image not found |
这是镜像找不到,而这里是Pods.framework找不到,而引起的必闪问题。
解决办法
老外的一段话:
Okay, fixed. The issue was the Pods.framework was set to required and not optional. It wasn’t being copied to device by the .sh script and so the app crashed. Setting this to optional fixed the issue.
大概意思是说,这个问题是Pods.framework设置成required而不是optional。在运行时,它会被.sh脚本拷贝到设备上,因此导致app崩溃。将required修改为optional就可以fix这个问题了。
在哪里设置?如下图所示:
时间: 2024-11-05 00:16:35