Thanks, But the command does't works here! Notice the same errror info.
If I don't modify the binary file, only re-codesign by
/usr/bin/codesign -f -s "iPhone Developer: xxx (xxxxxxx)" Payload/Demo.app/
that can works good!
I guess, insert_dylib tool only insert the LC_LOAD_DYLIB, and other info need update together if modify the LC_COMMAND