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
1 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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.