Post

Replies

Boosts

Views

Activity

Set custom Font globally
Is it possible to set a custom font globally or do you have to specify the font at each UI Element individually? I've written a View Extension based on this post: https://stackoverflow.com/questions/63529909/swiftui-override-the-system-font-with-multiple-styles/63535279#63535279 extension View {   func customFont(_ textStyle: CustomFont.TextStyle) -> some View {     self.modifier(CustomFont(textStyle: textStyle))   } } However this does not work with everything like NavigationView Titles. What would you recommend how to incorporate a custom font globally? Thanks in advance!
0
0
1k
Oct ’22
Xcode crashes everytime I try to record an UITest
Hello, I have an issue when trying to record UITests in Xcode. Every time I start recording my App, Xcode crashes. I tried reverting to an older version of my App where I was able to record UITests but this did not work anymore as well. The Scrum App example still works, so I am at a loss what I am doing wrong. I am using version Version 14.1 (14B47b) Any help is appreciated. Greetings Translated Report (Full Report Below) ------------------------------------- Process: Xcode [5607] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 14.1 (21534.1) Build Info: IDEFrameworks-21534001000000000~2 (14B47b) App Item ID: 497799835 App External ID: 852950214 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2022-11-10 14:50:32.1429 +0100 OS Version: macOS 13.0 (22A380) Report Version: 12 Anonymous UUID: 2EEF9B0A-C96F-BF9E-FABB-78E5FCC42A46 Time Awake Since Boot: 630 seconds System Integrity Protection: enabled Crashed Thread: 17 Dispatch queue: XCUIRecorder_iOS.processingQueue Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: abort() called Application Specific Signatures: NSInternalInconsistencyException Application Specific Backtrace 0: 0 CoreFoundation 0x000000018fc40418 __exceptionPreprocess + 176 1 DVTFoundation 0x0000000102222220 DVTFailureHintExceptionPreprocessor + 392 2 libobjc.A.dylib 0x000000018f78aea8 objc_exception_throw + 60 3 Foundation 0x0000000190b80a60 -[NSCalendarDate initWithCoder:] + 0 4 XCUIAutomation 0x00000001032dc014 -[XCUIRecorderNodeFinder childAtIndexNodeWithTargetElementTypeAndIdentifierValue:] + 696 5 XCUIAutomation 0x00000001032da470 __45-[XCUIRecorderNodeFinder nextNodeFinderMatch]_block_invoke_3 + 84 6 XCUIAutomation 0x00000001032d978c -[XCUIRecorderNodeFinder nextNodeFinderMatch] + 5160 7 XCUIAutomation 0x00000001032d702c +[XCUIRecorderNodeFinder nodeToFindElementForSnapshots:language:platform:] + 856 8 XCUIAutomation 0x000000010333853c -[XCUIRecorderUtilities nodeToFindElementForSnapshots:] + 84 9 XCUIAutomation 0x00000001032ffa60 __177-[XCUIRecorder_iOS _XCT_recordedEventNames:timestamp:duration:startLocation:startElementSnapshot:startApplicationSnapshot:endLocation:endElementSnapshot:endApplicationSnapshot:]_block_invoke + 1208 10 libdispatch.dylib 0x000000018f95d9dc _dispatch_call_block_and_release + 32 11 libdispatch.dylib 0x000000018f95f504 _dispatch_client_callout + 20 12 libdispatch.dylib 0x000000018f966bbc _dispatch_lane_serial_drain + 672 13 libdispatch.dylib 0x000000018f96773c _dispatch_lane_invoke + 436 14 libdispatch.dylib 0x000000018f97234c _dispatch_workloop_worker_thread + 652 15 libsystem_pthread.dylib 0x000000018fae2100 _pthread_wqthread + 288 16 libsystem_pthread.dylib 0x000000018fae0e20 start_wqthread + 8 Application Specific Backtrace 1: 0 CoreFoundation 0x000000018fc40418 __exceptionPreprocess + 176 1 DVTFoundation 0x0000000102222220 DVTFailureHintExceptionPreprocessor + 392 2 libobjc.A.dylib 0x000000018f78aea8 objc_exception_throw + 60 3 Foundation 0x0000000190b80a60 -[NSCalendarDate initWithCoder:] + 0 4 XCUIAutomation 0x00000001032dc014 -[XCUIRecorderNodeFinder childAtIndexNodeWithTargetElementTypeAndIdentifierValue:] + 696 5 XCUIAutomation 0x00000001032da470 __45-[XCUIRecorderNodeFinder nextNodeFinderMatch]_block_invoke_3 + 84 6 XCUIAutomation 0x00000001032d978c -[XCUIRecorderNodeFinder nextNodeFinderMatch] + 5160 7 XCUIAutomation 0x00000001032d702c +[XCUIRecorderNodeFinder nodeToFindElementForSnapshots:language:platform:] + 856 8 XCUIAutomation 0x000000010333853c -[XCUIRecorderUtilities nodeToFindElementForSnapshots:] + 84 9 XCUIAutomation 0x00000001032ffa60 __177-[XCUIRecorder_iOS _XCT_recordedEventNames:timestamp:duration:startLocation:startElementSnapshot:startApplicationSnapshot:endLocation:endElementSnapshot:endApplicationSnapshot:]_block_invoke + 1208 10 libdispatch.dylib 0x000000018f95d9dc _dispatch_call_block_and_release + 32 11 libdispatch.dylib 0x000000018f95f504 _dispatch_client_callout + 20 12 libdispatch.dylib 0x000000018f966bbc _dispatch_lane_serial_drain + 672 13 libdispatch.dylib 0x000000018f96773c _dispatch_lane_invoke + 436 14 libdispatch.dylib 0x000000018f97234c _dispatch_workloop_worker_thread + 652 15 libsystem_pthread.dylib 0x000000018fae2100 _pthread_wqthread + 288 16 libsystem_pthread.dylib 0x000000018fae0e20 start_wqthread + 8 Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x18faa6df0 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x18fab88d8 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x18faaf638 mach_msg_overwrite + 540 3 libsystem_kernel.dylib 0x18faa716c mach_msg + 24 4 CoreFoundation 0x18fbc5bdc __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x18fbc44c8 __CFRunLoopRun + 1232 6 CoreFoundation 0x18fbc38a4 CFRunLoopRunSpecific + 612 7 HIToolbox 0x1992373bc RunCurrentEventLoopInMode + 292 8 HIToolbox 0x199237200 ReceiveNextEventCommon + 672 9 HIToolbox 0x199236f48 _BlockUntilNextEventMatchingListInModeWithFilter + 72 10 AppKit 0x192e1c630 _DPSNextEvent + 632 11 AppKit 0x192e1b7c0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728 12 DVTKit 0x10123d888 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 300 13 AppKit 0x192e0fbf0 -[NSApplication run] + 464 14 DVTKit 0x10123ca90 -[DVTApplication run] + 60 15 AppKit 0x192de7058 NSApplicationMain + 880 16 dyld 0x18f7bbe50 start + 2544 ... }
1
0
669
Nov ’22
Sign in with Apple suddenly fails with Error 7003
Hello, our Sign in with Apple Button no longer works and throws an 7003 error. It worked a few days ago but suddenly fails. Any ideas how to fix this? Thanks in advance! plist: <dict> <key>com.apple.developer.applesignin</key> <array> <string>Default</string> </array> ... Code: var body: some View { VStack { SignInWithAppleButton(.signUp) { request in request.requestedScopes = [.fullName, .email] } onCompletion: { result in switch result { case .success(let authResults): handleSuccess(authorization: authResults) case .failure(let error): self.credentialFailure = true self.errorMessage = .appleSignInError logger.error("SIWA login failure: \(error)") } } .signInWithAppleButtonStyle(.white) .cornerRadius(GlobalValues.cornerRadius) } } Error: Authorization failed: Error Domain=AKAuthenticationError Code=-7003 "(null)" UserInfo={AKClientBundleID=com.our.app} ASAuthorizationController credential request failed with error: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1001 "(null)" SIWA login failure: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1001 "(null)"
3
0
794
Apr ’24