Hello Sir,
I am facing issue after upgrade my Xcode 12.x version. Application showing button image, navigation bar icons image and other image are working fine in Xcode 11.7 or lower, it will also working fine in the debug build. but not showing in the release build or unconnected debug build.
I an unable to understand how can we resolve this issue.
Post
Replies
Boosts
Views
Activity
Hello Guys, My application getting crashes most of the time while we using self.mapView.userTrackingMode Please let me know How can i resolve the crash issue?Crashed: com.apple.main-thread0 libsystem_malloc.dylib 0x199070d74 default_zone_malloc + 1021 CoreFoundation 0x19932ddd4 __CFStrAllocateMutableContents + 962 CoreFoundation 0x19932d624 __CFStringChangeSizeMultiple + 6083 CoreFoundation 0x199328218 __CFStringAppendBytes + 6124 CoreFoundation 0x19931a2e4 __CFStringAppendFormatCore + 128205 CoreFoundation 0x19931a65c _CFStringCreateWithFormatAndArgumentsAux2 + 1526 CoreFoundation 0x19931a730 CFStringCreateWithFormat + 607 CoreFoundation 0x199277e8c -[_CFXPreferences(PlistSourceAdditions) withManagedSourceForIdentifier:user:perform:] + 1048 CoreFoundation 0x19927d84c -[_CFXPreferences appValueIsForcedForKey:appIdentifier:] + 1609 CoreFoundation 0x1993b0e08 CFPreferencesAppValueIsForced + 10410 GeoServices 0x19edc86e4 ___getValue_block_invoke.llvm.7478192230168857876 + 18011 MapKit 0x1a6b28834 MapKitConfig_GetPropertiesForKey + 291212 GeoServices 0x19edc6e54 GEOConfigGetPropertiesForKey + 8413 GeoServices 0x19edc85bc _getValue.llvm.7478192230168857876 + 18014 GeoServices 0x19edc65f0 GEOConfigGetInteger + 2815 MapKit 0x1a69a7cac -[MKMapView _canShowControls] + 9216 MapKit 0x1a6986704 -[MKMapView _showOrHideScaleIfNecessary:] + 4817 MapKit 0x1a697d1a8 -[MKMapView _didChangeRegionMidstream:] + 25618 MapKit 0x1a69aa420 -[MKMapView mapLayerDidChangeVisibleRegion] + 5619 VectorKit 0x1a76cd9d4 __77-[VKMapAnnotationTrackingCameraController _rotateToHeadingAnimated:duration:]_block_invoke + 94820 VectorKit 0x1a76cd5c8 -[VKMapAnnotationTrackingCameraController _rotateToHeadingAnimated:duration:] + 66421 VectorKit 0x1a733cbac -[VKAnnotationTrackingCameraController startTrackingAnnotation:trackHeading:animated:] + 57222 MapKit 0x1a69a5464 -[MKMapView _setUserTrackingMode:animated:fromTrackingButton:] + 83623 lineinspectionSTG 0x10301a7dc specialized BeginInspectionVC.mapView(_:regionDidChangeAnimated:) + 4298926044 (<compiler-generated>:4298926044)24 lineinspectionSTG 0x103015704 @objc BeginInspectionVC.mapView(_:regionDidChangeAnimated:) + 4298905348 (<compiler-generated>:4298905348)25 MapKit 0x1a697d4c0 -[MKMapView _didChangeRegionMidstream:] + 104826 MapKit 0x1a69aa5a4 -[MKMapView mapLayerDidChangeRegionAnimated:] + 6427 VectorKit 0x1a76cd5f4 -[VKMapAnnotationTrackingCameraController _rotateToHeadingAnimated:duration:] + 70828 VectorKit 0x1a733cbac -[VKAnnotationTrackingCameraController startTrackingAnnotation:trackHeading:animated:] + 57229 MapKit 0x1a69a5464 -[MKMapView _setUserTrackingMode:animated:fromTrackingButton:] + 83630 lineinspectionSTG 0x10301a7dc specialized BeginInspectionVC.mapView(_:regionDidChangeAnimated:) + 4298926044 (<compiler-generated>:4298926044)31 lineinspectionSTG 0x103015704 @objc BeginInspectionVC.mapView(_:regionDidChangeAnimated:) + 4298905348 (<compiler-generated>:4298905348)32 MapKit 0x1a697d4c0 -[MKMapView _didChangeRegionMidstream:] + 104833 MapKit 0x1a69aa5a4 -[MKMapView mapLayerDidChangeRegionAnimated:] + 6434 VectorKit 0x1a76cdaa4 __77-[VKMapAnnotationTrackingCameraController _rotateToHeadingAnimated:duration:]_block_invoke.102 + 70835 VectorKit 0x1a722d780 -[VKAnimation stopAnimation:] + 57236 VectorKit 0x1a722db48 -[VKTimedAnimation stopAnimation:] + 83637 VectorKit 0x1a722dc44 -[VKTimedAnimation onTimerFired:] + 429892604438 VectorKit 0x1a71a1ef8 md::AnimationManager::onTimerFired(double) + 429890534839 VectorKit 0x1a71a2b5c md::InteractiveAnimationManager::onTimerFired(double) + 104840 VectorKit 0x1a74a4ef8 md::MapEngine::layoutScene(double, bool) + 6441 VectorKit 0x1a74a0938 -[_MapEngineRenderQueueSource renderQueueForTimestamp:] + 70842 VectorKit 0x1a75b1470 -[MDDisplayLayer _renderQueueForTimestamp:prepareHandler:] + 57243 VectorKit 0x1a75b1440 -[MDDisplayLayer renderQueueForTimestamp:] + 83644 VectorKit 0x1a771c8f8 -[MetalLayer _onTimerFired:withPresent:] + 429892604445 VectorKit 0x1a74a5938 md::MapEngine::renderScene(double, std::__1::function<void ()>) + 429890534846 VectorKit 0x1a74a365c md::MapEngine::onRenderTimerFired(double) + 104847 VectorKit 0x1a7716580 ggl::DisplayLink::onTimerFired(double) + 6448 VectorKit 0x1a77160e0 -[_GGLDisplayLinkTarget displayLinkFired:] + 70849 QuartzCore 0x19fbbe514 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 57250 IOKit 0x19a2b1eb0 IODispatchCalloutFromCFMessage + 83651 CoreFoundation 0x1992cd6d4 __CFMachPortPerform + 429892604452 CoreFoundation 0x1992f6e5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 429890534853 CoreFoundation 0x1992f6588 __CFRunLoopDoSource1 + 104854 CoreFoundation 0x1992f145c __CFRunLoopRun + 6455 CoreFoundation 0x1992f08bc CFRunLoopRunSpecific + 70856 GraphicsServices 0x1a315c328 GSEventRunModal + 57257 UIKitCore 0x19d3866d4 UIApplicationMain + 83658 lineinspectionSTG 0x102e71724 main + 21 (AppDelegate.swift:21)59 libdyld.dylib 0x19917b460 start + 4298905348
Hello Team, I am trying to display the line name corresponding to draw polyline in the apple map. when I used the draw function to draw the line name when polyline get render in the apple map. but these are too cluttered and it is not easy to readable. Please refer to the screenshot.I need a solution something like how apple shows the name for any road name, street name in the apple map.Please find the below Screenshots link :https://drive.google.com/open?id=1hCVGTvB7cytlcbHA2ZQ3gHd-ptkEK2ZLhttps://drive.google.com/open?id=1Ce8ebz8wSiJqGkV7THqcvNMehrMlYD1vCode which we are using to render the linename to map//// CustomOverlayPathRenderer.m// lineinspection//// Created by Rupendra Kumar on 13/02/17.// Copyright © 2017 Rupendra kumar. All rights reserved.//#import "CustomPolylineRenderer.h"#import "LineGuide-Swift.h"#define kchangeDistanceKmToMiles 0.621371@interface CustomPolylineRenderer(){ NSInteger coordinatesNumbers;}@property (nonatomic,assign)MKMapView * controllerName;@end@implementation CustomPolylineRenderer@synthesize pathName =_pathName;@synthesize objectId =_objectId;@synthesize coordinates = coordinates;- (instancetype)initWithOverlay:(id<MKOverlay>)overlay{ self = [super initWithOverlay:overlay]; if (self) { coordinatesNumbers = 0; if ([overlay isKindOfClass:[CustomPolyline class]]) { _pathName = ((CustomPolyline *)overlay).lineName; _objectId = ((CustomPolyline *)overlay).lineid; coordinates = ((CustomPolyline *)overlay).coordinate; _controllerName = ((CustomPolyline *)overlay).controllerName; } } return self;}- (void)applyStrokePropertiesToContext:(CGContextRef)context atZoomScale:(MKZoomScale)zoomScale { [super applyStrokePropertiesToContext:context atZoomScale:zoomScale]; CGContextSetLineWidth(context, self.lineWidth/zoomScale);}- (BOOL)canDrawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale { return YES;}-(void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef)context{ [super drawMapRect:mapRect zoomScale:zoomScale inContext:context];// //calculate CG values from circle coordinate and radius... CGFloat roadWidth = MKRoadWidthAtZoomScale(zoomScale); float size ; if (zoomScale >0.001 && zoomScale <0.9) { size = (5.0 * roadWidth); } else { size = MIN(1200, (15.0 * roadWidth)); } BOOL shouldDraw = YES; if (coordinates.latitude != NAN && coordinates.longitude != NAN) { shouldDraw = YES; } else { shouldDraw = NO; } if (shouldDraw) { if ([_pathName length] > 0) { CLLocationCoordinate2D center = coordinates; CGPoint centerPoint = [self pointForMapPoint:MKMapPointForCoordinate(center)]; NSDictionary *mutableAttributedString = @{NSForegroundColorAttributeName: [UIColor grayColor], NSFontAttributeName: [UIFont boldSystemFontOfSize: size]}; UIGraphicsPushContext(context); [_pathName drawAtPoint:centerPoint withAttributes:mutableAttributedString]; UIGraphicsPopContext(); } }}@end