AgeRange Functionality working on iPhone how to debug on Mac?

I created in my Objective-c project the AgeRange check for a special function.

It is working well on an iPhone. Now I used my Mac and added my app to the TestFlight on my macOS Tahoe 26.1

Here it is directly crashing. But how can I debug an Application which is created for iPhone and iPad with Xcode? I cannot use the target myMac when running a debugging mode. So how is the debugging working for such Apps?

Answered by DTS Engineer in 866469022

OK, thanks for the info. Is there any workaround available? I filed my project to the feedback FB21067180

Thank you filing FB21067180. There is no workaround.

Thanks for the post, this is a very interesting issue if causes a crash.

Do you have a simple focused project with the 3 targets only without any other code showing that is crashing only in macOS 26.0+? So we can see the crash file as what you are reproducing?

I suggest proving the focused project with the issue here for developer’s review. We can investigate whether there is a workaround or if it is a bug related to the API you are using.

https://developer.apple.com/documentation/declaredagerange/agerangeservice/agerangedeclaration

Thanks, looking forward to see the issue and the crash.

Albert Pascual
  Worldwide Developer Relations.

@Mikesch8764

Thanks for the comment, I know is annoying to build a new focused sample showing the way to use the API, just trying to verify you are using the new API and debug to see the crash. Using the TestFlight app will never provide me the API and how you are using it. Hope this helps

Albert Pascual
  Worldwide Developer Relations.

@Mikesch8764

If you're not familiar with preparing a test project, take a look at Creating a test project.

Hope this helps so we can download from a link here.

Albert Pascual
  Worldwide Developer Relations.

It is running fine in the iPhone Simulator but it crashes when I use "myMac" with the following error:dyld[45339]: Symbol not found: _$s16DeclaredAgeRange0bC7ServiceV07requestbC08ageGates__2inAC8ResponseOSi_SiSgAISo16UIViewControllerCtYaKF Referenced from: <B084C284-C23B-38A4-9B6C-AE0CAE047074>

This is a known bug where the API isn't supported on macOS Tahoe. Please file your own bug report if you haven't done it yet.

OK, thanks for the info. Is there any workaround available? I filed my project to the feedback FB21067180

Thank you filing FB21067180. There is no workaround.

AgeRange Functionality working on iPhone how to debug on Mac?
 
 
Q