Post

Replies

Boosts

Views

Activity

Extensions and Widget localizations
Hi community: I'm experiencing an issue in iOS 17 where the Widgets and Extensions use the local device language instead of the app language (preferred languages displayed on the app settings). This issue was reproducible in iOS 16.1, but then was solved. Now it is back on iOS 17 and iOS 17.1 In terms of code, Locale.current in the app returns the language preference selection, even you can use bundle.main.preferredlanguages and get the first one (because there's a repetition from 2 to 3 times the same value) But in whatever extension, the app's preferred language cannot be got, it always returns the system's preferred language. @eskimo, Is it a known issue? Also, Xcode 15.3 shows 0 files localized when you use the strings catalog. I appreciate any help you can provide.
3
0
1.3k
Sep ’24
App Store app size vs real one
Hello: I was checking the app size on the AppStore and seems like it is randomly different from one app to others. For example one app shows 27.6MB in the App Store and then when you download the size is 51.9 MB and 2.5MB of documents and data whereas another marks 88.8MB and then when you download the size is 86.3 MB and 2.5MB How the AppStore calculate these sizes?
2
0
659
Sep ’24
SwiftUI View cannot conform custom Equatable protocol in Swift 6.
In Swift 6, stricter concurrency rules can lead to challenges when making SwiftUI views conform to Equatable. Specifically, the == operator required for Equatable must be nonisolated, which means it cannot access @MainActor-isolated properties. This creates an error when trying to compare views with such properties: Error Example: struct MyView: View, Equatable { let title: String let count: Int static func ==(lhs: MyView, rhs: MyView) -> Bool { // Accessing `title` here would trigger an error due to actor isolation. return lhs.count == rhs.count } var body: some View { Text(title) } } Error Message: Main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode. Any suggestions? Thanks FB: FB15753655 (SwiftUI View cannot conform custom Equatable protocol in Swift 6.)
6
0
965
Mar ’25
Error on Ventura 13.3 when trying to distribute Mac Catalyst app through AppStore
Hi community: I'm getting an error when I try to distribute Mac Catalyst app through AppStore. This not happened with Ventura 13.3 RC(yesterday in Xcode cloud), same Xcode version (14.2) I'm thinking that maybe is problem related to Xcode cloud (because in local works fine same archive but signed and uploaded from local), but I don't know NSLocalizedRecoverySuggestion=Multiple binaries share the same codesign path ... Binaries: /Applications/exampleApp.app/Contents/Frameworks/NewFramework.framework/NewFramework /Applications/exampleApp.app/Contents/Frameworks/NewFramework.framework/Versions/Current/NewFramework This can happen if your build process copies frameworks by following symlinks. } Anyone came across with that and resolve it?
1
1
1.1k
Apr ’23
Xcode cloud errors
Hi community: I'm coming across two error types on Xcode cloud during ui tests. encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test crashed with signal kill before starting test execution. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/resultbundlexcresult)) encountered an error (Failed to prepare device 'Clone 7 of iPhone 14 Pro' for impending launch. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/ resultbundle.xcresult. (Underlying Error: Unable to boot the Simulator. launch failed to respond. (Underlying Error: Failed to start launch_ sim: could not bind to session, launchd_sim may have crashed or quit responding))) Any ideas on how to solve them? Thanks
6
1
2.4k
Dec ’24
XCTest UI Testing; boundElementsByIndex stale the main thread
Hi community: I found that after Xcode update from 14.3.1 to 15.0.1, my UITests fail only on the CI (Apple Xcode Cloud) because the use of boundElementsByIndex. Seems that the use of this property stale the main thread: Failed to resolve query: Unable to perform work on main run loop, process main thread busy for 30.0s Is it a known issue? Thanks
8
1
1.8k
Aug ’24
Code coverage. SwiftUI Wrong Executable Lines
Hi community: I noticed that each closure is counted as lines in code coverage (unit tests) (Xcode 14.1.0) in a swiftUI File. I mean, If you coded and VStack that involves another HStack, and HStack contains 4 lines, and the VStack contains 6 lines counting the HStack. The total executable lines should be 6 (6 lines in the file). But Xcode count 10, counting twice the HStack lines. Is it a bug, or is it correct? You know, I don't know if Apple has another concept about executable lines. Also, Is it possible to remove previews with any configuration from code coverage or constant files? Thanks for all.
1
2
828
Sep ’25
Network extensions are not available when building for Mac Catalyst.
We are building an app that support Mac Catalyst and network extension is included in. We don't know why the compiler throw this error: Network extensions are not available when building for Mac Catalyst. The documentation related to network extensions (in this case NEFilterDataProvider) in apple docs said explicitly that Mac catalyst is available. @eskimo @meaton please let me know if there's a bug with it. https://developer.apple.com/documentation/networkextension/nefilterdataprovider
1
1
912
Jun ’22