1.跑真机启动页直接死掉, 控制台提示dyld: Symbol not found: ___NSArray0__Referenced from: 和Expected in: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /private/var/mobile/Containers/Bundle/Application/
代码区
简单分析一下, 是用自己的测试程序的真机下载了APPStore上传的版本才出现的问题
解决办法:
Target –> General –>Linked Frameworks and Libaries –> 找到CoreFoundation.framework 删除之后从新添加 设置状态status Optional 然后clean 一下工程 运行 OK
2.xcode挂掉不能运行了提示错误(OSStatus error -1712)
解决办法:
退出Xcode 然后重启电脑
3.UIButton点击变换title时, 不直接变 先闪一下才变 解决
/* 这两个一起设置 先设置titleLabel */
sender.titleLabel.text = @"收藏店铺";
[sender setTitle:@"收藏店铺" forState:(UIControlStateNormal)];
4.使用第三方shareSDK微博分享是出现错误error :你所访问的站点在新浪微博的认证失败,请联系**或者稍后再试.(error:redirect_uri_mismatch) 新浪微博版权所有
解决办法:
http://open.weibo.com –> 我的应用–> 选择你的app–> 设置–> 左侧导航栏–> 应用信息–> 高级信息
编辑OAuth2.0 授权设置
http://www.sharesdk.cn
#define redirectURL @"http://www.sharesdk.cn"
case SSDKPlatformTypeSinaWeibo:
/* 设置新浪微博应用信息,其中authType设置为使用SSO+Web形式授权 */
[appInfo SSDKSetupSinaWeiboByAppKey:sinaKey
appSecret:sinaSecret
redirectUri:redirectURL /* 这个和注册新浪开发者时的高级信息里的授权链接统一就可以了 */
authType:SSDKAuthTypeBoth];
5.Warnning : The Copy Bundle Resources build phase contains this target’s Info.plist file
问题原因 把 info.plist 添加到工程的Copy Bundle Resources 中
解决办法: target –> build Phases 找到 Copy Bundle Resources 删了 info.plist
PS: 欢迎补充