I get the following output when executing a basic Command Line Application in XCode, when I set the Signing & Capabilities -> Signing Certificate -> Apple Development.
The same thing happens if I use any of the following: Apple Development, Apple Distribution, Mac Developer, Mac App Distribution, Mac Installer Distribution, Developer ID Application, Developer ID Install
All Signing Certificates Fail the Same Way
//
// main.swift
// cmt
//
// Created on 8/8/21.
// Copyright © 2021 codename. All rights reserved.
//
import Foundation
print("Hello, World!")
When I hit the "play" button, I get the following message from the debugger:
Message from debugger: Error 1
Program ended with exit code: -1
When I run the executable from a command line window, I get the following:
[MBP:~] q% /Users/q/Library/Developer/Xcode/DerivedData/cmt-gyeervgusfoqtvgjjzncleiifops/Build/Products/Debug/cmt ; exit;
Killed
When I set the Signing & Capabilities -> Signing Certificate -> Sign to Run Locally
then the executable runs properly with the following output:
Hello, World!
Program ended with exit code: 0
I need to be able to run with the "Apple Development" Signing Certificate. Please help me get my MACOS "Hello World" program running. It cannot possibly be this difficult to get a basic program running.