Post

Replies

Boosts

Views

Activity

iOS16 crash
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
13
5
3.1k
Aug ’22
users Widgets disappear!!! Xcode 16
Some users have reported that the app's widgets have disappeared after we updated to the latest Xcode for iOS 18 development. They are unable to find our app in the widget search, which prevents them from re-adding the widget. We were unable to reproduce this issue on our own devices during testing. Could this be a system bug? Have others encountered a similar issue?
11
8
1.8k
Oct ’24
iOS18, interactive widget not respond (AppIntent not working)
here is my case: i add the AppIntent to both your app and widget extension targets. the intent will run my app process when app is running. it works perfectly on iOS 17. but iOS 18, my app process never called. i download app's demo, https://developer.apple.com/documentation/widgetkit/emoji-rangers-supporting-live-activities-interactivity-and-animations it looks like the same issue. it runs well because even it runs in the widget extension target, it still can present expected UI. but in real case, we need to run the app process to do some work. by debugging, i found the app process never called(set breakpoint). i add openAppWhenRun, it works well on iOS 18. but it will open the app when the widget is running. it is not what i want.
4
5
2.3k
Aug ’24
iOS18 Control Widget custom symbol preview failed
i export apple SF as custom sf for test. code is simple: var body: some ControlWidgetConfiguration { StaticControlConfiguration( kind:"ControlWidgetConfiguration" ) { ControlWidgetButton(action: DynamicWidgetIntent()) { Text("test") Image("custom_like") } }.displayName("test") } as we can see, it can't show image in the preview. but it can show image in the Control widget center. am i do some thing wrong?
4
7
927
Aug ’24
XCode13 beta,iOS15. set tableview section header to 0. not working
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
Topic: UI Frameworks SubTopic: UIKit Tags:
3
0
4.8k
Nov ’21
Xcode15 beat5 debug extramely slow
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/xxx.framework/xxx(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
2
3
2.6k
Oct ’23
CarPlay present CPActionSheetTemplate Crash
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];
2
0
1.4k
Mar ’24
iOS18 AudioPlaybackIntent respond too slow when app not launched
here's my case, i develop a control widget, user can push a controlwidget to play music without open the app. i bind a AudioPlaybackIntent to the widget. when user click the widget, the app will receive the intent and start to play music. it works perfect when app running in background or foreground. but when app not launched, the respond is too slow, it takes several seconds to start play music. is there any way to make the respond faster when app not launched? if i want to do something when app not launched, what should i do?
2
0
940
Aug ’24
iOS18 Live Activity failed to show sometimes
In a music streaming app, when using Activity.request to activate the Dynamic Island, the system’s Now Playing interface appears correctly. However, the app's live activities, lock screen, and other related features fail to display properly. During debugging, the following code is used: activity = try Activity.request(attributes: attributes, contentState: contentState, pushType: .token) if !NMABTestManager.default().is(inTest: "FH-NewLiveActivityPush") { // Listen to push token updates if activity != nil { tokenUpdatesTask?.cancel() tokenUpdatesTask = Task.detached { for await tokenData in self.activity!.pushTokenUpdates { let mytoken = tokenData.map { String(format: "%02x", $0) }.joined().uppercased() // pushToken is Data, needs to be converted to String using the above method before being passed to the server self.pushToken = mytoken } } } } } catch (let error) { print("Error Starting Live Activity: \(error.localizedDescription)") } In this scenario, the push token is returned correctly, and no errors are triggered. This issue did not occur in iOS 17 but appears sporadically in iOS 18. Once it occurs, it cannot be resolved through restarting or other means. feedbackid:FB14763873, i upload my sysdisagnose
2
0
1.4k
Aug ’24
iOS18 Control Widget dynamic switch intent
Objective: When the app is running, directly operate the app without launching it. When the app is not started, wake up the app to perform the corresponding operation. Premise: AppIntent's openAppWhenRun can dynamically control whether the app is launched, but the variable itself cannot be changed. Therefore, the idea is to refresh the widget when the app is started or terminated, displaying different content (binding different intents) to achieve the goal. However, there are persistent issues during code implementation. struct ControlWidgetContent: ControlWidgetTemplate { var body: some ControlWidgetTemplate { if (applaunched) { return ControlWidgetButton(action: Aintent()) { Label("xxxx", systemImage: "calendar") } } else { return ControlWidgetButton(action: Bintent()) { Label("xxxx", systemImage: "calendar") } } } } @available(iOS 18.0, *) struct ControlWidgetContent: ControlWidget { let kind: String = "ControlWidgetInterface" var body: some ControlWidgetConfiguration { StaticControlConfiguration( kind: kind ) { ControlWidgetContent() }.displayName("xxxx") } } it preports error: Function declares an opaque return type 'some ControlWidgetTemplate', but the return statements in its body do not have matching underlying types Return statement has underlying type 'ControlWidgetButton<Label<Text, Image>, ControlWidgetButtonDefaultActionLabel, PlayDayRcmdIntent>'
2
0
901
Aug ’24
navigationBar setBackgroundImage not working on iOS15
- (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
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
8.2k
Sep ’21
iPhone14 Pro navigator originY strange number 53.667
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.
1
0
1.3k
Sep ’22
iOS Control Widget Crash
2024-12-12_15-10-54.4423_+0800-39bc42f42baee8f05378c4924bcac0ea28d49d67.crash we collect some device crash logs from the organizer window in Xcode. Thread 0 name: Thread 0 Crashed: 0 libsystem_platform.dylib 0x000000020eb8eb44 _platform_strlen + 4 1 libc++.1.dylib 0x000000019797c7f4 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::append(char const*) + 32 (string:2845) 2 libswiftCore.dylib 0x00000001859283c0 _gatherGenericParameters(swift::TargetContextDescriptor<swift::InProcess> const*, __swift::__runtime::llvm::ArrayRef<swift::MetadataOrPack>, swift::TargetMetadata<swift::InProcess> const*, __swift:... + 144 (MetadataLookup.cpp:1218) 3 libswiftCore.dylib 0x0000000185927f5c swift::TypeLookupError::TypeLookupError<_gatherGenericParameters(swift::TargetContextDescriptor<swift::InProcess> const*, __swift::__runtime::llvm::ArrayRef<swift::MetadataOrPack>, swift::TargetMet... + 76 (TypeLookupError.h:134) 4 libswiftCore.dylib 0x00000001858f9ba0 swift_getAssociatedTypeWitnessSlowImpl(swift::MetadataRequest, swift::TargetWitnessTable<swift::InProcess>*, swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolRequirement<swift::... + 772 (Metadata.cpp:6636) 5 libswiftCore.dylib 0x00000001858f7ab4 swift_getAssociatedTypeWitness + 92 (Metadata.cpp:6702) 6 SwiftUI 0x000000018c5090d0 static ControlWidgetConfigurationAdaptor._makeWidgetConfiguration(widget:inputs:) + 152 (<stdin>:0) 7 SwiftUI 0x000000018bd69170 TupleWidgetConfiguration.MakeList.visit<A>(type:) + 1124 (TupleWidget.swift:88) 8 SwiftUI 0x000000018c42e948 TypeConformance<>.visitType<A>(visitor:) + 120 (WidgetConfiguration.swift:132) 9 SwiftUI 0x000000018bd68768 static TupleWidgetConfiguration._makeWidgetConfiguration(widget:inputs:) + 1668 (TupleWidget.swift:59) 10 SwiftUI 0x000000018c628548 closure #1 in WidgetGraph.init<A>(rootBundle:) + 1168 (WidgetGraph.swift:53)
1
0
603
Dec ’24