iOS Bug收集

1.崩溃信息如下:

 Collection <__NSSetM: 0x146d47df0> was mutated while being enumerated.

在遍历set时,对set做了操作(删除或修改),发生崩溃。
修复办法:

[aMutableSet enumerateObjectsUsingBlock:^(id  _Nonnull obj, BOOL * _Nonnull stop) {
            if (满足条件)
            {
                *stop = YES;
                [aMutableSet removeObject:obj];
            }
        }];

2.发布app时,报如下错误:

Xcode 7 error: “Missing iOS Distribution signing identity for …”

解决办法如下:

1.Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
2.Double-click to install to Keychain.
3.Then in Keychain, Select View -> "Show Expired Certificates" in Keychain app.
4.It will list all the expired certifcates.
5.Delete "Apple Worldwide Developer Relations Certificate Authority certificates" from "login" tab
6.And also delete it from "System" tab.

这样就好了。

参考:

http://stackoverflow.com/questions/32821189/xcode-7-error-missing-ios-distribution-signing-identity-for

3.web页面调用相册或相机
报错如下:

Warning: Attempt to present <UIImagePickerController: 0x12734be00> on <MBTabBarVC: 0x1270fc000> whose view is not in the window hierarchy!

解决办法:在自定义的tab页面中重载下面方法。

-(void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion
{
    if ( self.presentedViewController)
    {
        [super dismissViewControllerAnimated:flag completion:completion];
    }
}

未完,待续...

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容