Post

Replies

Boosts

Views

Activity

Sign In with Apple in simulator
Hi everybody: I want to Sign In with Apple in simulator with the purpose of double check the flow with UITesting, but I'm not able to do it. The simulator stuck in password textfield once the password is entered in, and the button is accepted. (The button appears disable for a second and then again it is going enable, but the textfield loading still appears). are there any trick to test it from UI with simulator? Thanks in advance.
0
0
790
Apr ’22
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
911
Jun ’22
APNS file drag and drop doesn't work as expected
Hi: I'm wondering why dragging and dropping an APNs file to the simulator worked as expected and, now with Xcode 14.3 it doesn't. I mean the object userInfo: let notification: UNNotification .... let userInfo = notification.request.content.userInfo Now contains all the JSON, and before only the user Info. The APNS file is this: { "aps":{ "alert":{ "title":"Title", "body":"BODY", }, "badge":0, "key1":"valu1", "category": "category" }, "Simulator Target Bundle":"com.app.bundle" } What I get now is: (lldb) po userInfo ▿ 2 elements ▿ 0 : 2 elements ▿ key : AnyHashable("aps") - value : "aps" ▿ value : 4 elements ▿ 0 : 2 elements - key : category - value : category ▿ 1 : 2 elements - key : alert ▿ value : 2 elements ▿ 0 : 2 elements - key : title - value : Title ▿ 1 : 2 elements - key : body - value : BODY ▿ 2 : 2 elements - key : badge - value : 0 ▿ 3 : 2 elements - key : key1 - value : valu1 ▿ 1 : 2 elements ▿ key : AnyHashable("Simulator Target Bundle") - value : "Simulator Target Bundle" - value : com.app.bundle What I should get ▿ 2 elements ▿ 0 : 2 elements ▿ key : AnyHashable("key1") - value : "key1" - value : valu1 Maybe it is something related to the last change on pushes @eskimo? I mean, now web pushes are allowed. Thanks in advance
0
1
1.2k
Apr ’23
Xcode Cloud Code coverage
Hi: I'm trying to get the code coverage from a workflow build. I have a workflow with 2 actions (action1 and action2 in the rest of the text), both are tests (one unit and one UI test). When an action runs the post-xcodebuild script, the artifacts are not archived as I can see in the explanation: https://developer.apple.com/documentation/xcode/writing-custom-build-scripts Even, each action ends at a different time. How can I get programmatically the xcresults in an automated way? (action1 and action2 have different xcresults). I don't want to use fastlane or build up any server. Also, When Does run a scheme test post-action? After the post-Xcode build script run or after the archive of results? Is there any way in which the GitHub Xcode app generates an event in GitHub when all action archives end to retrieve the code coverage or the results? Also, I can't see the Xcode cloud code coverage sum in an Xcode window, How can I see it (The whole coverage action1 test result + action2 test result) Thanks in advance
0
1
1.1k
Jun ’23
Local notifications on tvOS
Hi: I want to know how to schedule a local notification in tvOS and when you tap it, open the app. I was reading the documentation: https://developer.apple.com/documentation/usernotifications/unnotificationcontent And I don't know why the title and body, for example, are unavailable for tvOS. Any help is welcome. Thanks in advance.
0
1
746
Aug ’23
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
826
Sep ’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.7k
Aug ’24