When I encode using RBE, my file doesn't run

This is an unencrypted RBE file; it runs fine, but it doesn’t run after RBE encryption. Please help me.:smiling_face_with_tear:

Try removing the file extension “.rbe” before encrypting.

For example here:

EXTENSION_PATH = File.join(__dir__, EXTENSION_ID, 'main.rbe').freeze

Same with your require statements in main.rb and elsewhere if they exist.

still not working

still not working :smiling_face_with_tear:

What method did you use to encrypt the extension?

Check this (specially the “Requiring Files” paragraph) :
File: Extension Requirements — SketchUp Ruby API Documentation

Also, the Sketchup require method .

encrypt by extension warehouse

I have adjusted it but it still doesn’t work

Does this line of code look the same in your file that you say you edited?

James (3DxJFD) also helped me finally understand what that error message meant.

It looks like you may have tried to manually rename most of your .rb files to .rbe for encrypting. When you sign/encrypt your extension with EW it will be returned with some files renamed with the .rbe. So you don’t need to do that. Go back and rename them to .rb.

Then review the links that Dezmo shared. You need to remove .rb from files in your require statements. Otherwise, the encryption process will goof up and the extension will not load.