Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

i.mac

macrumors 6502a
Original poster
Dec 14, 2007
996
247
Hi...

I wonder if any one has any words of wisdom? See below. Thanks.


System:
Darwin iMac.local 12.2.1 Darwin Kernel Version 12.2.1: ... RELEASE_X86_64 x86_64

- have: xcode install with command line tools

- have: Eclipse (eclipse.org) with CDT tools

- have: self signed certificate enabled for code signing

- issue: create c++ hello world executable, codesign the executable, but cannot run

$ ./main.hello
-bash: ./main.hello: Operation not permitted


$ spctl --assess main.hello
main.hello: File created by an AppSandbox, exec/open not allowed

$ codesign --display --verbose=4 main.hello
Executable=~/workspace/../Debug/main.hello
Identifier=main
Format=Mach-O thin (x86_64)
CodeDirectory ...
location=embedded
Hash type=sha1 size=20
CDHash=...
Signature size=...
Authority=...
Signed Time=...
Info.plist=not bound
Sealed Resources=none
Internal requirements count=2 size=160
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.