Swift: how to fully strip internal/inline symbols?

前端 未结 1 657
无人共我
无人共我 2021-02-02 02:26

I need to write some license checking code in Swift. I know Swift is not optimal for that kind of code in the first place, as it is harder to obfuscate. But if the code that nee

1条回答
  •  -上瘾入骨i
    2021-02-02 03:08

    I have investigated this again, and found the following strip settings to work well for Release builds:

    • Deployment Postprocessing = Yes
    • Strip Linked Product = Yes
    • Perform Single-Object Prelink = No
    • Use Separate Strip: Optional, doesn't make a difference
    • Strip Style:
      • All Symbols for the main app (equivalent to -Xlinker -s according to this guide)
      • Non-Global Symbols for libraries (equivalent to -Xlinker -x)
    • Other Linker Flags: None; already provided by "Strip Style"

    0 讨论(0)
提交回复
热议问题