I have tried to create a bootable installer for macOS Sierra to use on my MacBook Air that is broken and needs to reinstall macOS (The macOS X Lion installer that comes with the Macbook is broken and says it is unable to install additional components needed to install macOS).
I have tried to follow these instructions; https://support.apple.com/en-us/HT201372 but they haven't worked.
I used this code in the terminal: sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Backup --applicationpath /Applications/Install\ macOS\ Sierra.app
(The drive I am trying to use is called 'Backup' and has been erased to become a 'macOS Extended (Journaled)' type drive.) After entering my password and waiting for about two minutes I receive this error:
"2019-11-05 11:07:18.778 createinstallmedia[21078:275343]
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't posix_spawn: error 35'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff360dcf53 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6c1ac835 objc_exception_throw + 48
2 Foundation 0x00007fff38715fd5 -[NSConcreteTask launchWithDictionary:error:] + 5014
3 Foundation 0x00007fff387235a5 +[NSTask launchedTaskWithLaunchPath:arguments:] + 153
4 createinstallmedia 0x00000001087f2968 createinstallmedia + 6504
5 libdyld.dylib 0x00007fff6d50f2e5 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException"
It is expected to look more like: https://support.apple.com/library/content/dam/edam/applecare/images/en_US/macos/macos-high-sierra-terminal-create-bootable-installer.png