Error-工作中遇到的
1.加载mapView时出现问题
didFailWithError:Error Domain=kCLErrorDomain Code=0 "(null)"
Painter Z index: 1023 is too large (max 255)
这可能是MKMapView 的析构函数的问题,不管你的地图视图对象如何配置,在Xcode8和iOS10系统下都有几率出现冻结你的应用程序,主线程挂起。
为了帮助在调试、切后台一段时间再唤醒应用程序时,不会引起冻结应用程序,建议在使用MKMapView 对象的视图控制器的dealloc方法中添加如下代码:
- (void)dealloc
{
#if DEBUG
// Xcode8/iOS10 MKMapView bug workaround
staticNSMutableArray* unusedObjects;
if(!unusedObjects)
unusedObjects = [NSMutableArraynew];
[unusedObjectsaddObject:mapView];
#endif
}
2.出现duplicate错误
说明有重复内容
3.libMobileGestalt MobileGestaltSupport.m:153: pid 10883 (XXMap) does not have sandbox access for xxxxxxx and IS NOT appropriately entitled
这是苹果系统的BUG
4.Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
解决:I solved this by changing the MKMapType Standard to Satellite
5.Painter Z index: 1023 is too large (max 255)
6.[Client] Geocode error: Error Domain=GEOErrorDomain Code=-8 "(null)"
7.pod xxx时,出现下面问题/Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) ,详情如图
解决方案:卸载原来的cocoapods,再重新安装
~ user$ which pod
/usr/local/bin/pod
~ user$ sudo rm -rf /usr/local/bin/pod
~ user$ gem list
~ user$ sudo gem uninstall cocoapods -v 1.3.1
~ user$ sudo gem uninstall cocoapods -v 1.3.1
~ user$ sudo gem install cocoapods
8.TIC Read Status [2:0x604000164500]: 1:57
Apple staff gave the following answer:
TIC expands to “TCP I/O connection”, which is a subsystem within CFNetwork that runs a TCP connection
2 is a connection ID number within TIC
0x604000164500 is a pointer to the TIC object itself
1 and 57 are the CFStreamError domain and code, respectively; a domain of 1 is kCFStreamErrorDomainPOSIX and, within that domain, 57 is ENOTCONN
In short, a TCP read has failed with ENOTCONN.
As the TCP I/O connection subsystem has no public API, you must necessarily be using it via some high-level wrapper (like NSURLSession).
9.Undefined symbols for architecture x86_64: “OBJC_CLASS$_AFHTTPRequestOperationManager”, referenced from: type metadata accessor for __ObjC.AFHTTPRequestOperationManager in UserManager.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
一般出现这种问题都是少库
使用Pod降级AFNetworking后,会发生这样的错误,重新安装AFN都不行。
解决办法:
在自己的工程Build Phases的Link Binary With Libraries中添加libAFNetworking.a
10.expected selector for objective-c method
这个报错非常恶心:原因竟然是在导入头文件的地方多写了一个“+”号,可能问题在一个文件,报错在另一个文件
11.Shell Script Invocation Error Group
解决:input files去掉引用framework
12. 关于Duplicate interface definition for class'*'
13.ld: library not found for -lMBProgressHUD
14.CUICatalog: Invalid asset name supplied: ''
问题分析:这个问题其实是老问题,产生原因就是因为在使用的时候[UIImage imageNamed:]时,图片不存在或者传入的图片名为nil.
解决方法:添加一个系统断点,来判断如果图片名字为nil或者@""的时候,来拦截掉。
15. dyld: Library not loaded: @rpath/Hyphenate.framework/Hyphenate
Referenced from: /Users/liangyi/Library/Developer/CoreSimulator/Devices/F3F0CB24-F891-489D-B71F-1AA6DA17832C/data/Containers/Bundle/Application/8D4D4F2E-A19F-4590-BE80-41403C735448/EMDemo.app/EMDemo
Reason: image not found
16. [WebActionDisablingCALayerDelegate willBeRemoved]: unrecognized selector sent to instance 0x600000015050
为 WebActionDisablingCALayerDelegate 这个私有类添加方法,在后面的一次提交审核过程中,ipa文件提交失败:引用私有API(还是私有类,记不得了)。所以建议不要采用。
failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
2017-12-12 14:53:54.549638+0800 xx[5748:131628] void SendDelegateMessage(NSInvocation *): delegate (webView:resource:didFinishLoadingFromDataSource:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
17."Unable to insert COPY_SEND"