Post

Replies

Boosts

Views

Activity

"Wait for executable to be launched" not installing app
When I debug in Xcode, there is a launch flag that is normally set to "Automatically", and after building, Xcode installs & runs the app in the simulator or device. The other setting is "Wait for executable to be launched". I don't use this feature too much, but I thought what it would do in build & install the app, but not launch. So, the idea would be that you could install the app, then take over - as a user - and tap the icon to launch the app. At this point, the Debugger would take over again, and you could debug the app from a very early spot. When I set that flag now, the app never gets installed, so I can't do this. Xcode just has this in its status bar, and it never changes: Waiting to attach on I swore that it used to install the app in the sim for this setting. I don't know how many versions ago it was, but I really thought it did this. Does it not anymore, or should I file a bug?
2
0
315
Jan ’25
Is debugging with App Data broken?
Trying to use App Data on Xcode 16.2, and failing I'm running the app with the debugger. When I run the app, I need to do a handful of things, which affects my app's cache files, and UserDefaults. What I'd like to do is store all of these settings, then have them loaded in when the app launches, so I don't need to do same, tedious work of changing settings by hand in the UI. So, I discovered that I can provide an xcappdata directory in the Run options. This seems like exactly what I'm looking for. But I can't seem to get it to work. Like, when the app runs, it looks like none of those settings are brought in. I ran the app on a device, and pulled down the application data, and then put that in the project. And you can see in the screenshot, that the value is set. So, either I'm missing something (which is totally possible) or this feature is broken. Documentation on this is not great, so maybe I'm doing something wrong. If the feature is known to be broken, I'll give up on this. But if it should work, it would be great to get some tips here.
0
0
160
Jan ’25
Xcode Cloud on Apple Silicon any time soon?
I'm currently using another provider for CI/CD. They've been offering Apple Silicon builds for over a year now. When we switched over, we saw our build times cut in half. I've seen similar results locally, back when I bought an M1 Mac. So, recently, I tried to use Xcode Cloud on my project. My build time is nearly 45 minutes, where my build time on my current system is about 15 minutes, max. Since I work on a team, and we make regular commits, having a 45 minute turnaround is not ideal. When I looked at the logs of my Xcode Cloud project, I saw a lot "x86_64" stuff in there, which led me to believe that Xcode Cloud is still building on Intel machines. Additionally, I run tests on my builds. The build time alone (before running tests) was almost 20 minutes. The 15-minute time I cited with my current CI/CD included build time & tests running. So, a whole cycle finishes on my current setup before tests are even run. I noticed that there was a bunch of x86_64 in the logs, which made me think that Xcode Cloud is still using Intel. Is this true? I've just gotten really used to faster build times, and I can't move onto a system like this, where the times are so drastically different. Like, I wouldn't mind build time that would add only a few more minutes to what I have now. But going from 15 -> 45 minutes is a real problem.
1
4
768
Jun ’24
Xcode Cloud taking an extraordinary amount of time to run my unit tests
I have a project with over 600 tests. While that sounds like a lot, I can see the metrics about how long it takes to run those tests. (it's about 14 seconds). But when I create a job in Xcode Cloud to run these unit tests, I get very sub-optimal results. On a job that's never run (so no cached data) it took about 1hr 15 minutes. test-without-building takes an extraordinary amount of time. (1396 seconds). And if it's brand new build (no cached data) it also runs a command named build-for-testing, and that takes even longer (2626 seconds). Is there any documentation suggesting why these operations would take so long to complete? It doesn't take anywhere near this long on my own machine.
1
0
1.1k
Jan ’22
How to provide an "Order" button for a restaurant in Apple Maps
I noticed that when searching for restaurants in the Apple Maps app, some restaurants have an "Order" button. In one of the cases that I looked at, it launches "Yelp". If I were to build an app for a specific restaurant, and that restaurant offered takeout ordering within the app, then I'd rather have Apple Maps launch my app, instead of Yelp. How would I do that? Having trouble finding the APIs for this. I still would like the "Order" button right there, as it's very useful. I'd just rather it launch my app (assuming it's installed on the user's device).
0
1
992
Sep ’21