Post

Replies

Boosts

Views

Activity

Reply to Background terminations increase
Thanks for the reply. It seems clear from the data that something about our app changed to result in the increase in terminations. If it were just due to other apps, I don’t think we’d see quite the same step change. Possibly related: can the system terminate a non-suspended app that is running in the background due to system pressure? That could explain why we don’t see a difference in memory at suspension.
Mar ’25
Reply to NSTextLineFragment crash - how to debug
Thanks for the replies! I just updated the FB with full crash reports. Several users have shared content with us, however it's not entirely clear which part of it is resulting in the crash. So far, our attempts to repro by loading that user-supplied content have not been successful in reproducing the crash. The app uses a variety of text rendering methods: UITextView, UILabel, UITextField, WKWebView. We also use some 3rd-party libraries in certain situations, some of which do appear to use CoreText and TextKit2.
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’25
Reply to Xcode 16 beta 6 - unexpected concurrency build issues
Sharing a further cross-post: https://forums.swift.org/t/seeking-workaround-for-issue-76171/74518 I've realized that in our full project, there is other code beyond WKWebView.isInspectable that must also be causing this issue, but I don't know of any good ways to identify all of them. I did find one other piece of code that causes the problem by tearing the project down bit by bit until the error went away — a usage of URL(fileURLWithPath:) within an extension method on WKWebView. Other than being in an extension of WKWebView, it's not clear how this relates to the cause identified in the original post. Suspecting something related to extensions of classes from WebKit, I tried refactoring all such extensions into helper classes, but this did not help.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’24
Reply to Package.resolved modified unexpectedly when switching git branches outside of Xcode
Also, to clarify — we believe that Xcode is responsible for making the unexpected modifications to Package.resolved for several reasons: The unexpected edits do not occur if the project is not open in Xcode None of the other files in our project are impacted by this problem when changing branches It seems unlikely that 3rd-party tools like the git CLI would contain special treatment for the Package.resolved file.
Jun ’24
Reply to Web view delayed layout during window resize
x-posted as FB20456671
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Crash on "Library not loaded: /usr/lib/swift/libswiftWebKit.dylib" when use XCode 16.3, iOS 18.4
We're also seeing this: FB17747993
Replies
Boosts
Views
Activity
May ’25
Reply to Cannot run apps that use the callAsyncJavaScript() method on older simulators
I'm seeing this in my project as well.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Background terminations increase
Thanks for the reply. It seems clear from the data that something about our app changed to result in the increase in terminations. If it were just due to other apps, I don’t think we’d see quite the same step change. Possibly related: can the system terminate a non-suspended app that is running in the background due to system pressure? That could explain why we don’t see a difference in memory at suspension.
Replies
Boosts
Views
Activity
Mar ’25
Reply to NSTextLineFragment crash - how to debug
Thanks for the replies! I just updated the FB with full crash reports. Several users have shared content with us, however it's not entirely clear which part of it is resulting in the crash. So far, our attempts to repro by loading that user-supplied content have not been successful in reproducing the crash. The app uses a variety of text rendering methods: UITextView, UILabel, UITextField, WKWebView. We also use some 3rd-party libraries in certain situations, some of which do appear to use CoreText and TextKit2.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to WKWebView adding cookie does not work with iOS 18 beta
Could be related to this WebKit bug involving SameSite cookie policies: https://bugs.webkit.org/show_bug.cgi?id=279153
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode 16 beta 6 - unexpected concurrency build issues
We found a workaround — use Task instead of Task.detached. This happens to work regardless of whether the compiler see the NSItemProvider closures as main-actor isolated.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode 16 beta 6 - unexpected concurrency build issues
Sharing a further cross-post: https://forums.swift.org/t/seeking-workaround-for-issue-76171/74518 I've realized that in our full project, there is other code beyond WKWebView.isInspectable that must also be causing this issue, but I don't know of any good ways to identify all of them. I did find one other piece of code that causes the problem by tearing the project down bit by bit until the error went away — a usage of URL(fileURLWithPath:) within an extension method on WKWebView. Other than being in an extension of WKWebView, it's not clear how this relates to the cause identified in the original post. Suspecting something related to extensions of classes from WebKit, I tried refactoring all such extensions into helper classes, but this did not help.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode 16 beta 6 - unexpected concurrency build issues
@DTS Engineer that works but only when I have SWIFT_COMPILATION_MODE = singlefile If I use SWIFT_COMPILATION_MODE = wholemodule, then the issue still occurs. Perhaps this suggests a further workaround of moving the offending code into a separate module…
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode 16 beta 6 - unexpected concurrency build issues
@DTS Engineer this issue is still present in Xcode 16 RC (Version 16.0 (16A242)). (I just noticed that the RC appears to have the same swift version, so this makes sense)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Package.resolved modified unexpectedly when switching git branches outside of Xcode
This appears to be resolved in Xcode 16
Replies
Boosts
Views
Activity
Aug ’24
Reply to Package.resolved modified unexpectedly when switching git branches outside of Xcode
Thanks for the reply. Here's the bug report: FB14095059
Replies
Boosts
Views
Activity
Jun ’24
Reply to Package.resolved modified unexpectedly when switching git branches outside of Xcode
Another update on this issue — I'm now able to repro the issue when switching branches using Xcode as well as 3rd-party git clients. Also, using FSMonitor (https://fsmonitor.com), I've confirmed that Xcode is the process that modifies Package.resolved unexpectedly.
Replies
Boosts
Views
Activity
Jun ’24
Reply to Package.resolved modified unexpectedly when switching git branches outside of Xcode
Also, to clarify — we believe that Xcode is responsible for making the unexpected modifications to Package.resolved for several reasons: The unexpected edits do not occur if the project is not open in Xcode None of the other files in our project are impacted by this problem when changing branches It seems unlikely that 3rd-party tools like the git CLI would contain special treatment for the Package.resolved file.
Replies
Boosts
Views
Activity
Jun ’24
Reply to How to comply with signing requirement for privacy-impacting SDKs distributed as source
The Feb 29, 2024 Apple Developer News article titled Privacy updates for App Store submissions seems to clarify that the signing requirement only applies to binary dependencies.
Replies
Boosts
Views
Activity
Mar ’24