- main.cpp:
< /ol>Код: Выделить всё
#include int main() { std::cout [*]clang++ -std=c++20 -O2 -o hello main.cpp
- entitlements.plist:
Код: Выделить всё
com.apple.security.app-sandbox
< /code>
[list]
[*]codesign --sign --timestamp --options runtime --entitlements entitlements.plist hello
Код: Выделить всё
./hello
по -прежнему приводит к нелегальной аппаратной инструкции . Что могло пойти не так? Я не думаю, что что -то пропустил.>
Подробнее здесь: https://stackoverflow.com/questions/797 ... with-illeg