Wednesday, October 16, 2019

#1 2019-09-19 07:23:10 am

markconwaymunro
Member
Registered: 2017-11-28
Posts: 41
Website

Release Build w/Scripts as Run Only

In the past (with AS Studio) if you switched to Build Configuration of Release, all your scripts were saved as run only where the code was hidden. Now I can't find a setting to make that happen. Is there something I need to do explicitly?

Offline

 

#2 2019-09-19 07:38:40 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11613
Website

Re: Release Build w/Scripts as Run Only

• In Xcode in the navigation bar select the project file (on the top).
• Select the target
• Select tab Build Settings on the top of the window
• Type OSA into the search field
• Set Save as Execute-Only to YES


regards

Stefan

Offline

 

#3 2019-09-19 07:49:31 am

markconwaymunro
Member
Registered: 2017-11-28
Posts: 41
Website

Re: Release Build w/Scripts as Run Only

I don't seem to have that option, searching OSA produces nothing. I searched build settings for the Project and Target...

Offline

 

#4 2019-09-19 07:52:14 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5951

Re: Release Build w/Scripts as Run Only

It should be under OSACompile - Build Options in Build Settings.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#5 2019-09-19 07:56:33 am

markconwaymunro
Member
Registered: 2017-11-28
Posts: 41
Website

Re: Release Build w/Scripts as Run Only

It should be under OSACompile - Build Options in Build Settings.



If I select the Project/Build Settings, I see a Build Options section but only:

—Debug Information Format
—Enable Testability options

If I select the Target/Build Settings, I do not see a Build Options section.

Neither seems to have any mention of OSA anywhere...?

Offline

 

#6 2019-09-19 05:18:08 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5951

Re: Release Build w/Scripts as Run Only

Sounds like you have Basic settings shown, not All. The buttons are in the row below the General/Capabilities/... tabs.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#7 2019-09-19 05:42:07 pm

markconwaymunro
Member
Registered: 2017-11-28
Posts: 41
Website

Re: Release Build w/Scripts as Run Only

Yep. That was it. Good grief. big_smile

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)