InjectionApp icon indicating copy to clipboard operation
InjectionApp copied to clipboard

(os/kern) invalid argument (error code: 4)

Open se-rg-os opened this issue 9 years ago • 3 comments

Hi, I am trying to use the app, but getting this error when trying to inject Source:

an error occurred while injecting Simulator: (os/kern) invalid argument (error code: 4)

Xcode 8.2.1 iPhone 5 simulator with iOS 10.2 (not device) MacOS Sierra 10.12.2

Not sure if app has iOS 10.x for simulators, read about device limitations only.

UPD: tried with another project and iPhone 5/iOS 9.3 simulator - got same error

se-rg-os avatar Jan 10 '17 09:01 se-rg-os

ah, I think this could be becuase iPhone 5 is 32 bits? Injection bootstrap is 64bits only

johnno1962 avatar Jan 10 '17 12:01 johnno1962

@johnno1962 yes, you were right, on iPhone 5s app does not give an error. It gives warning like:

/Users/sergii/Developer/ViewController.swift objc[41204]: Class _TtC1421ViewController is implemented in both /Users/sergii/Library/Developer/CoreSimulator/Containers/Bundle/Application/.app/ and /Users/sergii/Library/Developer/Xcode/DerivedData/***Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle1.bundle/InjectionBundle. One of the two will be used. Which one is undefined.

So nothing is changed on simulator after injecting source. But maybe there is an issue for that already

se-rg-os avatar Jan 19 '17 16:01 se-rg-os

You can ignore the warning. Have you reloaded the viewcontroller to see the changes take effect?

johnno1962 avatar Jan 19 '17 16:01 johnno1962