Posts

Post marked as solved
1 Replies
629 Views
Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unsupported object <CPActionSheetTemplate: 0x2819a4480> <identifier: CD077C44-7F3F-46CC-B713-35A0259124EA, userInfo: (null), tabTitle: (null), tabImage: (null), showsTabBadge: 0> passed to presentTemplate:animated:completion:. Allowed classes: {( CPAlertTemplate, CPVoiceControlTemplate, CPGridTemplate, CPListTemplate, CPNowPlayingTemplate, CPTabBarTemplate )}' [[NMCarPlayEventManage shareManage].carplayInterfaceController dismissTemplateAnimated:NO]; [[NMCarPlayEventManage shareManage].carplayInterfaceController presentTemplate:sp animated:YES];
Posted
by Highmore.
Last updated
.
Post not yet marked as solved
0 Replies
406 Views
Project Info:A music player iOS App with watchOS app embedded. Project Structure: app target: music intent extenstion: intent (for iOS platform) watchOS app target: watchKit watchOS extension: watchKit Extension iOS app use intent extension to support SiriKit with play media intent, it works very well. now i want to support Siri on watchOS app, but i don't know how. i have tried to add new watch extension target, but it doesn't work. i t keeps saying "my app doesn't support *** instruction". Please share if I have missed to read through some documentation / reference that solves this problem.
Posted
by Highmore.
Last updated
.
Post not yet marked as solved
2 Replies
1.3k Views
the xcode will freze for 3mins when hit a breakpoint. it report "Fetching variables on ***'s iPhone" it happens when hit a new breakpoint, and the xcode will freeze for 3mins, then it will be ok. anysolution? its wasting my time. the xcode continue print the log below: (arm64) /Users/xx/Desktop/patch/Project/Pods/TestSDK/vendor/***.framework/***(FPEncryptMsg.pb-c.o) 0x00000c22: unable to locate module needed for external types: /Users/packagedevice/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/38MC9CUKFC6LS/Darwin-MI6WZSG1PNOM.pcm error: '/Users/packagedevice/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/38MC9CUKFC6LS/Darwin-MI6WZSG1PNOM.pcm' does not exist Debugging will be degraded due to missing types. Rebuilding the project will regenerate the needed module files. Our project has many dependencies which are binary file. And these dependencies are build in the remote serve。Anyone has ideas about this
Posted
by Highmore.
Last updated
.
Post not yet marked as solved
1 Replies
450 Views
the xcode will freze for 3mins when hit a breakpoint. it report "Fetching variables on ***'s iPhone" it happens when hit a new breakpoint, and the xcode will freeze for 3mins, then it will be ok. anysolution? its wasting my time.
Posted
by Highmore.
Last updated
.
Post not yet marked as solved
1 Replies
793 Views
iPhone 14 Pro: status bar height : 54 navigator bar originY : 53.667 is this a system bug? it happens on simulator and real device. this may cause some problems when I use the (navigator bar height + status bar height) to calculate the originY of the content view. for example, i set the content view's originY to 98(54 + 44), but the navigator bar's originY is 53.667, so the content view's originY needs to be 98.667. it will have a gap 0.333px between the navigator bar and the content view.
Posted
by Highmore.
Last updated
.
Post not yet marked as solved
12 Replies
2.3k Views
Thread 0 Crashed: 0 libsystem_kernel.dylib 0x1ca00dbc4 __abort_with_payload + 8 1 libsystem_kernel.dylib 0x1ca02fc48 abort_with_payload + 16 2 libsystem_c.dylib 0x1950a8410 _os_crash_fmt 3 UIKitCore 0x190ab43b8 +[UIWindow _checkPreCommitHandlersAfterCAFlush] + 312 4 UIKitCore 0x18fdab174 _cleanUpAfterCAFlushAndRunDeferredBlocks + 92 5 UIKitCore 0x190270e08 _UIApplicationFlushCATransaction + 72 6 UIKitCore 0x1903bd33c _UIUpdateSequenceRun + 84 7 UIKitCore 0x1909f9ea8 schedulerStepScheduledMainSection + 172 8 UIKitCore 0x1909f9074 runloopSourceCallback + 92 9 CoreFoundation 0x18dcba2cc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 10 CoreFoundation 0x18dcc6660 __CFRunLoopDoSource0 + 176 11 CoreFoundation 0x18dc4a5c4 __CFRunLoopDoSources0 + 244 12 CoreFoundation 0x18dc5ff58 __CFRunLoopRun + 836 13 CoreFoundation 0x18dc65284 CFRunLoopRunSpecific + 612 14 GraphicsServices 0x1c67eb368 GSEventRunModal + 164 15 UIKitCore 0x19010e860 -[UIApplication _run] + 888 16 UIKitCore 0x19010e4c4 UIApplicationMain + 340
Posted
by Highmore.
Last updated
.
Post not yet marked as solved
3 Replies
4.4k Views
self.tableView = [[UITableView alloc] initWithFrame:self.view.frame]; - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UILabel *label = [[UILabel alloc] init];     label.text = @"test";     return label; } - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {     return 0.01; } it works perfect on iOS14. but on iOS15 XCode13 beta. it doesn't work anymore. have a default header which height is 22 here
Posted
by Highmore.
Last updated
.
Post marked as solved
1 Replies
7.4k Views
- (void)viewDidLoad {     [super viewDidLoad];     [self.navigationController.navigationBar setBackgroundImage:[self imageWithColor:[UIColor redColor]] forBarMetrics:UIBarMetricsDefault]; } - (UIImage *)imageWithColor:(UIColor *)color {     CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f);     UIGraphicsBeginImageContext(rect.size);     CGContextRef context = UIGraphicsGetCurrentContext();     CGContextSetFillColorWithColor(context, [color CGColor]);     CGContextFillRect(context, rect);     UIImage *image = UIGraphicsGetImageFromCurrentImageContext();     UIGraphicsEndImageContext();     return image; } it works on iOS14, but on iOS15. it doesn't work. the color of navigationBar does't change
Posted
by Highmore.
Last updated
.