1 Reply Latest reply: Oct 12, 2013 11:16 PM by red_menace
Apple_For_The_Win Level 1 Level 1 (0 points)

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?

  • 1. Re: Is there a way to hide the source code in an Xcode app?
    red_menace Level 6 Level 6 (14,615 points)

    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.