Post

Replies

Boosts

Views

Activity

Reply to Xcode: Could not attach to pid
if any one sees like the following messages on 11.M.N of Xcode --error: attach by name 'processname' failed -- Problems with launching via XPC. XPC error : Connection interruptedYou know that the process had a crash in your prior debug session.Until I reboot the machine, I can not re-attach to the same process -- what a bummer :-(
May ’20
Reply to Sample code for System Extensions and Endpoint Security?
Thanks much Eskimo ! I was able to compile using Xcode beta 3 and 4 of 12.0 I'm not sure if the App that embeds the extension should be in Application folder, if so is it /Applications ?? When I try to launch under Xcode, I'm able to see in the UI the launching is successful. BUT SEE signature problem. Not sure why though !. When I check the signature psinha@Prokash.Sinha:~/GITS/MonitoringSystemEventsWithEndpointSecurity/Build/Products/Debug$ codesign -dvvvv com.example.apple-samplecode.SampleEndpointApp.Extension.systemextension/ Executable=/Users/psinha/GITS/MonitoringSystemEventsWithEndpointSecurity/Build/Products/Debug/com.example.apple-samplecode.SampleEndpointApp.Extension.systemextension/Contents/MacOS/com.example.apple-samplecode.SampleEndpointApp.Extension Identifier=com.example.apple-samplecode.SampleEndpointApp.Extension Format=bundle with Mach-O thin (x86_64) CodeDirectory v=20500 size=772 flags=0x10000(runtime) hashes=14+5 location=embedded VersionPlatform=1 VersionMin=659200 VersionSDK=720896 Hash type=sha256 size=32 CandidateCDHash sha256=c093346dc496a58da0bc8f61450b972d8819ca6d CandidateCDHashFull sha256=c093346dc496a58da0bc8f61450b972d8819ca6d29de431d3e6c4c9c1a52ca01 Hash choices=sha256 CMSDigest=c093346dc496a58da0bc8f61450b972d8819ca6d29de431d3e6c4c9c1a52ca01 CMSDigestType=2 Page size=4096 CDHash=c093346dc496a58da0bc8f61450b972d8819ca6d Signature size=4739 Authority=Apple Development: Prokash Sinha (XQ47TT249Y) Authority=Apple Worldwide Developer Relations Certification Authority Authority=Apple Root CA Signed Time=Aug 6, 2020 at 12:06:27 PM Info.plist entries=22 TeamIdentifier=C489D5E8E8 Runtime Version=11.0.0 Sealed Resources version=2 rules=13 files=1 Internal requirements count=1 size=220
Aug ’20
Reply to XPC Service in C -- Illegal instruction: 4
BY the way, I'm trying this using C API interface ( no Obj-C tho ). We will have a launchctl based EP Security client, which we tested and seem to work fine ( note that we don not want any app related stuff, like canvas, delegates etc. ). At the start we will have a communication dylib that is going to field XPC based communication I mentioned here. This is gong to be C and C++. XPC module could stay as C module. Hope it does not create more problems !! -P
Sep ’21