Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Is there a way to hide the source code in an Xcode app?

Whenever I export an Applescript app from Xcode, in the resources folder, there is the unprotected source code. Someone else has changed the source code a bit and has begun distributing my app as his own. Is there anyway to compile or encrypt this code on export?

Posted on Oct 12, 2013 9:58 PM

Reply
Question marked as Best reply

Posted on Oct 12, 2013 11:16 PM

In your project's build settings there is an OSACompile - Build Options section where you can select the option to Save as Execute-Only. The run-only script isn't encrypted, but I haven't heard of anyone taking the time to decompile one. Note that even though the script is no longer easily readable, text strings and variable/method names can still be seen.

1 reply
Question marked as Best reply

Oct 12, 2013 11:16 PM in response to Apple_For_The_Win

In your project's build settings there is an OSACompile - Build Options section where you can select the option to Save as Execute-Only. The run-only script isn't encrypted, but I haven't heard of anyone taking the time to decompile one. Note that even though the script is no longer easily readable, text strings and variable/method names can still be seen.

Is there a way to hide the source code in an Xcode app?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.