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 on 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];
    }
}

未完,待续...

你可能感兴趣的:(iOS Bug收集)