Re: Confusion about release mode in Xcode

2019-09-25 Thread Quincey Morris via Cocoa-dev
On Sep 25, 2019, at 14:44 , Gabriel Zachmann via Cocoa-dev 
 wrote:
> 
> I have tried to create a new scheme, then changed the Build Configuration to 
> "Release".
> But in
>  Build Phases ⟶ Copy Files 
> it still says that the product is copied from ... build/Debug.
> (The destination is /Users/home/Library/Screen Savers)
> I have deleted it and added it to the Copy Files phase again, same result.

Assuming that you’re copying an item that is listed in the navigator pane, then 
the correct thing to do is to select it in the navigator, show the File 
inspector, and change the Location popup to “Relative to Build Products”.

However, if this is the Products group, when I looked at a project of mine, 
Xcode 11 doesn’t let me change that popup — it’s already locked to “Relative to 
Build Products”. So, I’m not sure if there’s something else going on here.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Confusion about release mode in Xcode

2019-09-25 Thread Gabriel Zachmann via Cocoa-dev
I haven't released my software (screensaver) in many years,
so please bear with me, I am not up-to-date any more how this works.

I have tried to create a new scheme, then changed the Build Configuration to 
"Release".
But in
  Build Phases ⟶ Copy Files 
it still says that the product is copied from ... build/Debug.
(The destination is /Users/home/Library/Screen Savers)
I have deleted it and added it to the Copy Files phase again, same result.

On the other hand, when I check /Users/home/Library/Screen 
Savers/ArtSaver.saver/Contents/MacOS/ ,
the executable has the right timestamp , and it's file size is slightly less 
than the size of the exec 
in .../Build/Products/Release/ArtSaver.saver/Contents/MacOS .

So , I am confused.

I have also tried Product ⟶ Archive, which was recommended on the internet, but 
then I got this error message:
Multiple commands produce 
'/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Build/Intermediates.noindex/ArchiveIntermediates/ArtSaver/InstallationBuildProductsLocation/Users/zach/Library/Screen
 Savers/ArtSaver.saver':
1) Target 'ArtSaver' has create directory command with output 
'/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Build/Intermediates.noindex/ArchiveIntermediates/ArtSaver/InstallationBuildProductsLocation/Users/zach/Library/Screen
 Savers/ArtSaver.saver'
2) Target 'ArtSaver' has copy command from 
'/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Build/Intermediates.noindex/ArchiveIntermediates/ArtSaver/BuildProductsPath/Release/ArtSaver.saver'
 to 
'/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Build/Intermediates.noindex/ArchiveIntermediates/ArtSaver/InstallationBuildProductsLocation/Users/zach/Library/Screen
 Savers/ArtSaver.saver'

Of course, I tried to find a solution by googling, again to no avail.


I just want to build a release version of my code, with the usual settings, 
such as -O3 (or -Os) and stripped debug symbols.
I am fine with copying that out of whatever directory it will end up in.

All hints and pointers will be appreciated.
Thanks a lot in advance for all kinds of insights.

Best regards, Gabriel




smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com