XcodePatch icon indicating copy to clipboard operation
XcodePatch copied to clipboard

Fail to write binary file

Open a724632952 opened this issue 3 years ago • 3 comments

In Step4, when I use python to execute the script. I got the result of 'Fail to write binary file'.

Lief already installed,and the path is correct.

How can I make it success?

(MacBook Pro (13-inch, M1, 2020) , xcode = xcode_fat.take(lief.MachO.CPU_TYPES.ARM64) )

a724632952 avatar Apr 20 '22 04:04 a724632952

Please paste your full script here.

unixzii avatar Apr 21 '22 16:04 unixzii

same issue

image

DarkTemple avatar Apr 22 '22 00:04 DarkTemple

same issue

image

Did you download your Xcode from App Store? If so, the Xcode.app bundle will not be writable without root permission. You can change the destination path to another temporary path, and move the output binary to Xcode.app bundle manually. Or an even more easier way, run the script with sudo.

unixzii avatar May 06 '22 03:05 unixzii