Last active
December 23, 2020 09:04
-
-
Save michaeleisel/37c9f04041eb3c37e127ae78a22a6ed0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These are just common sets of args. For your app, it may vary. But these should cover most of the size of the __TEXT segment | |
For an app with just Objective-C: | |
-Wl,-rename_section,__TEXT,__text,__MY_TEXT,__text | |
-Wl,-rename_section,__TEXT,__stubs,__MY_TEXT,__stubs | |
-Wl,-rename_section,__TEXT,__stub_helper,__MY_TEXT,__stub_helper | |
-Wl,-rename_section,__TEXT,__objc_classname,__MY_TEXT,__objc_classname | |
-Wl,-rename_section,__TEXT,__cstring,__MY_TEXT,__cstring | |
-Wl,-rename_section,__TEXT,__objc_methname,__MY_TEXT,__objc_methname | |
-Wl,-rename_section,__TEXT,__objc_methtype,__MY_TEXT,__objc_methtype | |
-Wl,-rename_section,__TEXT,__const,__MY_TEXT,__const | |
-Wl,-rename_section,__TEXT,__unwind_info,__MY_TEXT,__unwind_info | |
-Wl,-segprot,__MY_TEXT,rx,rx | |
For an app with both Objective-C and Swift: | |
-Wl,-rename_section,__TEXT,__text,__MY_TEXT,__text | |
-Wl,-rename_section,__TEXT,__stubs,__MY_TEXT,__stubs | |
-Wl,-rename_section,__TEXT,__stub_helper,__MY_TEXT,__stub_helper | |
-Wl,-rename_section,__TEXT,__objc_methname,__MY_TEXT,__objc_methname | |
-Wl,-rename_section,__TEXT,__objc_classname,__MY_TEXT,__objc_classname | |
-Wl,-rename_section,__TEXT,__objc_methtype,__MY_TEXT,__objc_methtype | |
-Wl,-rename_section,__TEXT,__cstring,__MY_TEXT,__cstring | |
-Wl,-rename_section,__TEXT,__const,__MY_TEXT,__const | |
-Wl,-rename_section,__TEXT,__gcc_except_tab,__MY_TEXT,__gcc_except_tab | |
-Wl,-rename_section,__TEXT,__swift4_typeref,__MY_TEXT,__swift4_typeref | |
-Wl,-rename_section,__TEXT,__swift4_reflstr,__MY_TEXT,__swift4_reflstr | |
-Wl,-rename_section,__TEXT,__swift4_fieldmd,__MY_TEXT,__swift4_fieldmd | |
-Wl,-rename_section,__TEXT,__swift4_types,__MY_TEXT,__swift4_types | |
-Wl,-rename_section,__TEXT,__swift4_capture,__MY_TEXT,__swift4_capture | |
-Wl,-rename_section,__TEXT,__swift4_assocty,__MY_TEXT,__swift4_assocty | |
-Wl,-rename_section,__TEXT,__swift4_proto,__MY_TEXT,__swift4_proto | |
-Wl,-rename_section,__TEXT,__swift4_builtin,__MY_TEXT,__swift4_builtin | |
-Wl,-rename_section,__TEXT,__ustring,__MY_TEXT,__ustring | |
-Wl,-rename_section,__TEXT,__unwind_info,__MY_TEXT,__unwind_info | |
-Wl,-rename_section,__TEXT,__eh_frame,__MY_TEXT,__eh_frame | |
-Wl,-segprot,__MY_TEXT,rx,rx | |
For an app with just Swift: | |
-Wl,-rename_section,__TEXT,__text,__MY_TEXT,__text | |
-Wl,-rename_section,__TEXT,__stubs,__MY_TEXT,__stubs | |
-Wl,-rename_section,__TEXT,__stub_helper,__MY_TEXT,__stub_helper | |
-Wl,-rename_section,__TEXT,__objc_methname,__MY_TEXT,__objc_methname | |
-Wl,-rename_section,__TEXT,__cstring,__MY_TEXT,__cstring | |
-Wl,-rename_section,__TEXT,__objc_classname,__MY_TEXT,__objc_classname | |
-Wl,-rename_section,__TEXT,__objc_methtype,__MY_TEXT,__objc_methtype | |
-Wl,-rename_section,__TEXT,__const,__MY_TEXT,__const | |
-Wl,-rename_section,__TEXT,__swift4_typeref,__MY_TEXT,__swift4_typeref | |
-Wl,-rename_section,__TEXT,__swift4_reflstr,__MY_TEXT,__swift4_reflstr | |
-Wl,-rename_section,__TEXT,__swift4_fieldmd,__MY_TEXT,__swift4_fieldmd | |
-Wl,-rename_section,__TEXT,__swift4_types,__MY_TEXT,__swift4_types | |
-Wl,-rename_section,__TEXT,__swift4_assocty,__MY_TEXT,__swift4_assocty | |
-Wl,-rename_section,__TEXT,__swift4_proto,__MY_TEXT,__swift4_proto | |
-Wl,-rename_section,__TEXT,__unwind_info,__MY_TEXT,__unwind_info | |
-Wl,-rename_section,__TEXT,__eh_frame,__MY_TEXT,__eh_frame | |
-Wl,-segprot,__MY_TEXT,rx,rx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment