哪些年踩过的奇葩坑(不断更新)

1. iPad版引用第三方库Crash,提示『xxxx.bundle> (not yet loaded)』

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle  (not yet loaded)' with name 'RMXLivePlayViewController''

原因:第三方库支持最低iOS8,而Podfile的platform为iOS7,导致无法生成通用的nib文件
解决:修改Podfile支持最低版本为iOS8.0,platform :ios, "8.0",pod update就OK了

2. 新浪微博请求授权显示错误提示「redirect_ui_mismatch」

解决:登录http://open.weibo.com ,选择[管理中心]->[我的应用]->["您的应用名"]->展开左侧[应用信息]->[高级信息]->OAuth2.0 授权设置 右上角[编辑]->在框里填入回调地址即可.(前期测试应用时随便填个公司主页即可.两个地址可以相同)
[来自:http://blog.csdn.net/typingios/article/details/9110073]

3. 无法弹出actionSheet,提示『[Warning: Attempt to present on which is already presenting』

// 上一个actionSheet点击选项后调用(错误原因:上一个actionSheet dismiss动画没有结束导致新的actionSheet无法弹出,比如举报)
//- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
//{
//    [[[UIApplication sharedApplication].delegate window] makeKeyAndVisible];
//    _blockDelegate((int)buttonIndex,actionSheet.cancelButtonIndex == buttonIndex);
//}
// 上一个actionSheet动画结束后回调(正确姿势)- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex
{   
   [[[UIApplication sharedApplication].delegate window] makeKeyAndVisible];   
  _blockDelegate((int)buttonIndex,actionSheet.cancelButtonIndex == buttonIndex);
}

[来自:http://www.iganlei.cn/codeing/ios/600.html]

3. AppleID开发者费用支付成功,只收到订单确认邮件,确无法创建应用

可能原因与解决方案:支付订单姓名与真实姓名不同,订单无法正常处理。一般要等5-7个工作日Apple客服人员联系修改,当然你可以直接拨打苹果开发者联盟电话修改订单姓名(400-670-1855)

你可能感兴趣的:(哪些年踩过的奇葩坑(不断更新))