>>
>> No guarantees, but you could try moving your code into an AppDelegate method
>> that gets invoked earlier:
>>
>> - (void)applicationWillFinishLaunching:(NSNotification *)notification;
>>
Sorry for bothering again. The above solutions works very well.
Now I would like to make my app
> On May 24, 2020, at 2:47 AM, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> I am confused: does Xcode really build the debug version when I make an
> Archive?
There are two build configurations Debug and Release. The default build
configuration is Debug when building and running.
Xcode
Gabriele,
When you do archive Xcode uses a different build destination. It seems to use
/Library/Developer/Xcode/Archives
It builds an Archive bundle of sorts to package your build.
You can right click in the organizer and select ‘Show In Finder’ and explore
what Xcode is building for you.
When I do Product / Archive , Xcode builds my app and shows it in the Organizer.
However, it only creates /tmp/Debug, even though the Scheme has Build
Configuration = Release in the Archive section.
(I have set Derived Data to /tmp in the Locations tab in Xcode's preferences.)
I am confused: