1.通过OpenSSH连上iOS设备运行ps命令查看(前提是通过Cydia安装adv-cmds)
2.通过Cydia安装SysInfoPlus查看(推荐)
1.通过OpenSSH连上iOS设备运行ps命令查看(前提是通过Cydia安装adv-cmds)
2.通过Cydia安装SysInfoPlus查看(推荐)
问题描述:今天做ZTE,发现反复运行,会OOM。
问题解决:Google了如下解决办法,果然有效。
ad.stop();
for (int i = 0; i < ad.getNumberOfFrames(); ++i){
Drawable frame = ad.getFrame(i);
if (frame instanceof BitmapDrawable) {
((BitmapDrawable)frame).getBitmap().recycle();
}
frame.setCallback(null);
}
ad.setCallback(null);
问题描述:
今天做TAG,UIWebView有时正常。有时无任何显示,并报如下错误:
2013-12-05 14:49:49.028 TAG[2680:c817] void SendDelegateMessage(NSInvocation *): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode:
问题解决:
网上搜了一圈。原因是UIKit不支持多线程,必须在主线程上修改。具体原因是UIWebView是CRITTERCISM冲突,UIWebView需要在CRITTERCISM前初始化,但是项目里办不到。因为项目用了Segment.io,所以直接off了。
问题描述:使用CocoaPods加了TestFlight类库:pod 'TestFlightSDK', '~> 2.0.2'
报如下错误:"_OBJC_CLASS_$_TestFlight", referenced from:
问题解决:先是觉得会不会和Crashlytics冲突,结果Google了很多,试了很多,最后试了如下方子成功!
In the Build Settings, do not override "Other Linker Flags". If it is bold, select it press backspace, it should be back to its normal state. If it is not fixed, delete all flags, remove and reinstall Pods and that should fix it.
可能是Other Linker Flags自定义的时候CocoaPods就不更新的关系。
问题描述:转用CocoaPods作为第三方类库管理加载后,测试提示找不到某类库的.h文件。
问题解决:Project->[Project Name]->Configurations->LogicTests->"None" to "Pods"
参考:http://ios.devtools.me
内容
设计
文档
类库
测试
Frankk自动化UI测试
其他
正则表达式
ReggyiOS官方正则表达式类库检查工具
Reginald RegEx explorer第三方正则表达式类库RegexKitLite检查工具
问题描述:想更新CocoaPods,在终端运行sudo gem update cocoapods,出现如下错误:
Updating cocoapods
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/xcodeproj-0.13.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/xcodeproj-0.13.1/ext/xcodeproj/gem_make.out
问题解决:Go to Xcode, Preferences -> Downloads,download Command Line Tools.
问题描述:想重装CocoaPods,在终端运行gem install cocoapods命令,出现如下错误:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
问题分析:可能是没有权限
问题解决:sudo gem install cocoapods
问题描述:今天在做TAG App,插上iPhone测试时,没有设备。在Organizer窗口提示This device is no longer connected.
问题解决:换了数据线后解决了。。。
PS:2014年2月13日,做输入法的时候,又遇到了。。。换另一个iPhone却是好的,排除数据线问题。。。重启Xcode后神奇修复
问题描述:今天在做TAG App发现SVPullToRefresh在iOS7上会缩到导航栏和状态栏后。
问题解决:问题是由于iOS7修改了导航栏和状态栏的机制导致的,在init中针对iOS7加入如下代码:
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))
{
self.edgesForExtendedLayout = UIRectEdgeNone;
}