Post

Replies

Boosts

Views

Activity

Watch Simulator ( Xcode 16.3)
I have an Watch APP and it's iOS APP .. I want to test it via the Simulator. (with my real Watch I have a lot of Xcode error and an open ticket with Apple) Xcode 16.2 associates an Iphone16 to the Series 10 Watch simulated. BUT the Watch is not associeted to the iPhone. WCSession.isSupported is true, but session.isPaired is false on the iPhone. On the Watch : session.isReachable returns false. But in its settings the Simulator shows the Watch. And It is the same problem with another model of Watch in the Simulator.
2
0
70
Apr ’25
Very hard Watch communication after update of Xcode, MacOs, Watch OS ?
I have a swift project with a Watch companion. Since the update of Xcode in 16.3 version after updating MAcOs , Watch OS, iOS to the latest version . It is quasi impossible for me to make Xcode work with my series 10 Watch. I have a lot of alert box, messages in the "device & Simulator" tool like this Previous preparation error: A connection to this device could not be established.; Timed out while attempting to establish tunnel using negotiated network parameters. And many message telling me that Xcode is preparing the Watch , then that it has lost the connexion. I have to wait some minutes after EACH run of the App to test it again. This is very annoying . Some of the alerts I have : And the best to know , is that I can run the APP outside of Xcode , it works, Connects to the iPhone, fetch data and so. the iPhone sees the Watch without and problem. Reboots can solve for a few minutes the problem. But that is not a solution.
0
0
71
Apr ’25
How do I handle force-quit in Swift
How do I handle force quit in Swift? I received crash reports during a tesflight test. I didn't understand what it was: none of my app's symbols were present, and Xcode didn't want them either... unlike two others who were very specific. By doing a few Google queries, I saw that [UIApplication _terminateWithStatus:] + 136 (UIApplication.m:7578). Accompanied by a SIGSEV... corresponded to a simple thing: it's a crash during a force quit. I tested it with two iPhones, connected to my Mac, and launched the app from Xcode on each of them. I waited a bit, then quit it. It immediately went into the background and waited to launch operations with BackgroundTaskManager. I went to the app carousel and quit it with a swipe of my finger. I immediately see in the log that "sceneDidDisconnect" from SceneDelegate is called... then the immediate crash occurs, with the same elements as those received during the test flight crashlog.crash : SIGSEV and [UIApplication _terminateWithStatus:] and identical elements thereafter. And this applies regardless of what I put in "SceneDidDisconnect," a print, and something to close the BGtasks if they are running (but iOS should normally kill them too, right?) .. 1 or 2 secondes after it crashes. At the moment of the crash, the Xcode cursor is positioned on "class Appdelegate" in AppDelegate. class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { My question is: how do I handle force quit in Swift? I have another Objective-C application that does the same thing and runs identical operations in the background. If I force quit it, there is no crash.
4
0
89
Mar ’25
Uikit : -[UIApplication _terminateWithStatus:] + 136 (UIApplication.m:7539)
I have a few crash report from TestFlight with this context and nothing else. No symbols of my application. Crash report is attached. crashlog.crash It crashes at 16H25 (local time paris) and a few minutes after (8) I see the same user doing task in background (they download data with a particular URL in BGtasks) with a Delay that is consistant with a background wait of 5 or 7 minutes. I have no more information on this crash and by the way Xcode refuses to load it and shows an error. ( I did a report via Xcode for this).
0
0
38
Mar ’25
is Share broken ?
I have added "share to " fonction in my App. With activityViewController as I do not use SwiftUI. The fonction captures the screen in a in image. I'm using Xcode Version 16.2 (16C5032a) and the iPhone where I test is running iOS 18.3.2 "share to", appears : I can send the image to Mail , via Airdrop, I can post to Facebook, threads .. but for BlueSky I have this error message : Couldn't read values in CFPrefsPlistSource<0x303471e80> (Domain: com.apple.country.carrier_2, User: kCFPreferencesCurrentUser, ByHost: No, Container: /var/mobile/Library/CountryBundles/, Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access 59638328 Plugin query method called elapsedCPUTimeForFrontBoard couldn't generate a task port connection invalidated Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, `RBSPermanent=false}`` I have a working BlueSky app working, what is this "Client not entited " ?
Topic: UI Frameworks SubTopic: UIKit
1
0
58
Mar ’25
TestFlight feedback ?
On the developer portal , I have a mention of 13 feedback for my app in test. On the portal I have only access to 2 of them, the same in Xcode Organizer for the same version of course. This is important for us to have feedback from users betatesting our apps.
0
0
33
Mar ’25
help interpreting crash report (testflight)
I just received this crash report of my Application. It has zero symbol of my App (other crash reports have), so it is very difficult to understand and what meens this mention of: UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore: > Date/Time: 2025-03-19 21:39:54.5577 +0100 Launch Time: 2025-03-19 21:31:29.5543 +0100 OS Version: iPhone OS 18.3.2 (22D82) Release Type: User Baseband Version: 1.40.03 Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00001c7d7b153b10 Exception Codes: 0x0000000000000001, 0x00001c7d7b153b10 VM Region Info: 0x1c7d7b153b10 is not in any region. Bytes after previous region: 30844223027985 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL owned unmapped memory unmapped-unmapped [ 2064K] rw-/rw- SM=PRV owned physical footprint (unmapped) ---> UNUSED SPACE AT END Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [1844] Triggered by Thread: 0 Thread 0 name: Thread 0 Crashed: 0 libobjc.A.dylib 0x0000000181a77c20 objc_msgSend + 32 (:-1) 1 UIKitCore 0x0000000187e7c4c8 -[UIApplication _terminateWithStatus:] + 136 (UIApplication.m:7539) 2 UIKitCore 0x0000000186ed5644 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 112 (_UISceneLifecycleMultiplexer.m:819) 3 UIKitCore 0x0000000187626e8c -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 164 (_UISceneLifecycleMultiplexer.m:482) 4 UIKitCore 0x0000000187e77c28 -[UIApplication workspaceShouldExit:withTransitionContext:] + 164 (UIApplication.m:4238) 5 FrontBoardServices 0x000000019e08fcd4 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 72 (FBSWorkspaceScenesClient.m:632) 6 FrontBoardServices 0x000000019e0584c8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168 (FBSWorkspace.m:445) 7 FrontBoardServices 0x000000019e08fc74 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 128 (FBSWorkspaceScenesClient.m:629) 8 libdispatch.dylib 0x000000018c2befa8 _dispatch_client_callout + 20 (object.m:576) 9 libdispatch.dylib 0x000000018c2c29f0 _dispatch_block_invoke_direct + 284 (queue.c:515) 10 FrontBoardServices 0x000000019e051378 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52 (FBSSerialQueue.m:285) 11 FrontBoardServices 0x000000019e0512f8 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240 (FBSSerialQueue.m:309) 12 FrontBoardServices 0x000000019e0511d0 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:322) 13 CoreFoundation 0x0000000184570f4c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1970) 14 CoreFoundation 0x0000000184570ee0 __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2014) 15 CoreFoundation 0x0000000184573b40 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2051) 16 CoreFoundation 0x0000000184572d3c __CFRunLoopRun + 840 (CFRunLoop.c:2969) 17 CoreFoundation 0x00000001845c5284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434) 18 GraphicsServices 0x00000001d18354c0 GSEventRunModal + 164 (GSEvent.c:2196) 19 UIKitCore 0x000000018710e674 -[UIApplication _run] + 816 (UIApplication.m:3846) 20 UIKitCore 0x0000000186d34e88 UIApplicationMain + 340 (UIApplication.m:5503) 21 UIKitCore 0x000000018747115c UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:565) 22 maPollution 0x000000010405c240 specialized static UIApplicationDelegate.main() + 28 (/<compiler-generated>:20) 23 maPollution 0x000000010405c240 static AppDelegate.$main() + 28 (AppDelegate.swift:0) 24 maPollution 0x000000010405c240 main + 116 25 dyld 0x00000001aa821de8 start + 2724 (dyldMain.cpp:1338) Thread 1 name:
1
0
41
Mar ’25
Xcode crash reports from TestFlight
My application is in flightTest mode. I received my first two crash reports in XCODE /Organizer. The context is well described, and I was able to isolate the locations where very serious errors occurred. My application is connected. I'm missing one piece of data in this crash report: the time of the crash. This will help me see what (in my case) static data was being read on the data server at that time. This will help me investigate. Is it possible to obtain this information?
0
0
54
Mar ’25
Does apple validation team verify APP in bad network conditions ?
I have a connected application that retrieves Json (3 or 4 times in a session and 670 bytes on average) from a server based on application data. Apple refused my application by providing me with screenshots with very precise states and crash logs .. that I could only reproduce after 2 hours of testing by asking XCODE to place the iPhone in very specific conditions: 100% of packets lost on the network, which is a very rare case you will agree. Does Apple's app validation team use this network mode to test applications? It would be usefull for developer to know.
2
0
334
Mar ’25
Healthstore read only in objective-C ?
I have an App in objective-c that is using Health data (walk/run, cycling) to give advice to users . I do not want/need to write any data in the Healtkit. If i do (with the 3 values in the plist / .info : self.healthStore requestAuthorizationToShareTypes:nil readTypes:readDataTypes My request crashes. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Must request authorization for at least one data type' *** First throw call stack: ( 0 CoreFoundation 0x00000001804b910c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x0000000180092da8 objc_exception_throw + 72 2 CoreFoundation 0x00000001804b901c -[NSException initWithCoder:] + 0 3 HealthKit 0x000000019da034d4 -[HKHealthStore _validateAuthorizationRequestWithShareTypes:readTypes:] + 92 4 HealthKit 0x000000019da03670 -[HKHealthStore requestAuthorizationToShareTypes:readTypes:shouldPrompt:completion:] + 292 BUT in swift : healthStore.requestAuthorization(toShare: nil, read: readTypes) is working, présents only my 2 datas to read... in the same IOS , same phone without crashing. What is the difference ? Nil object in objective-c and Nil object in swift are not the same ? how do i make readonly requests in objective C ?
5
0
363
Mar ’25
Xcode 16.2 iPad storyboard not selected on iPad
I have an Iphone application in OBJECTIVE-C and I wanted to and an iPad version . I added the required values in the .plist via the editor (and and iPad to the hardware selection) and in the info of the appli : IPAD screen was not loaded , with no error message on the console. Absolutely no error message. Simulator and real iPad produce the same results. I did a new more test . File, new, file from template and created a new project (objective-c) with a simple Dashboard and a ViewController that is installed by default and populated by Xcode. It works without Errors with iPhone. If I add the iPad values in the plist and info : no IPAd screen loaded, no error in the console. Another test , this time I ask Swift as langage (I dont use this langage it was just for a test). Create a new project, simple Swift application with a storyboard and a ViewController. I add the .plist and.info value (Screenshot) an iPad storyboard and the same exact problem arrives. No loading of the iPad storyboard, No error message in the console. And iPad storyboard is correct , I I force it as the main screen , in "storyboard name" , it is loaded without and error on the iPad and the iPhone. but i dont want that, I want TWO storyboard and the iPad users sent to their interface, with their launchimage IS THIS A BUG IN XCODE 16.2 ? DID I MISS SOMETHING ?I did not found and other "iPad" strings to add to plist/info. I use Xcode Version 16.2 (16C5032a)
1
0
283
Feb ’25