Mac-asksec - Test Mac Permissions from the Terminal

Overview

asksec

A simple CLI to test permissions from any macOS terminal app.

Building

run ./build

Usage

Either use the binary you built or run swift run asksec

$ swift run asksec --help
USAGE: ask-sec [--contact] [--calendar] [--reminder]

OPTIONS:
  --contact               Ask for contacts permissions.
  --calendar              Ask for calendar permissions.
  --reminder              Ask for reminders permissions.
  -h, --help              Show help information.

After you run the app the system should show a dialog for each permission you requested. Do not to run this from tmux (it may not be connected to your active terminal).

Then the terminal application that you started it from should show up in Settings, Security & Privacy, Privacy under the permission you requested (with a checkbox if you answered allow).

If you do not get a prompt and your terminal app is not shown in Settings there may be a bug in your terminal application (test with macOS Terminal first).

Testing

To reset access:

tccutil reset AddressBook
tccutil reset Calendar
tccutil reset Reminders
You might also like...
A simple Timer app for Mac
A simple Timer app for Mac

A simple Timer app for Mac

QuickLook Preview for SwiftUI on Mac Catalyst
QuickLook Preview for SwiftUI on Mac Catalyst

QuickLook Preview for SwiftUI on Mac Catalyst According to the documentation for

Mac OSX app that displays window previews when hovering over app icon on the Dock.
Mac OSX app that displays window previews when hovering over app icon on the Dock.

Dock Window Preview Adds window preview functionality on hover for Mac Dock, an open-source alternative. This is very early in development and it will

Test-To-Do-List - Test To Do List with core data
Test-To-Do-List - Test To Do List with core data

test-To-Do-List This is my first pet project with core data Launch screen Main s

Kfm-ios-test - Test online for iOS Developer position in Kimia Farma or PT. Buana Varia Komputama
Kfm-ios-test - Test online for iOS Developer position in Kimia Farma or PT. Buana Varia Komputama

kfm-ios-test Kimia Farma Mobile iOS Test Test online for iOS Developer position

🗣Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permissions
🗣Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permissions

Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permissions. It uses i

A unified API to ask for permissions on iOS
A unified API to ask for permissions on iOS

Permission exposes a unified API to request permissions on iOS. Usage • Example • Installation • License Usage Permission Permission.swift PermissionS

Ask permissions on Swift. Available List, Dialog & Native interface. Can check state permission.
Ask permissions on Swift. Available List, Dialog & Native interface. Can check state permission.

SPPermissions About Library for ask permissions. You can check state of permissions, available .authorized, .denied & .notDetermined. Available ready-

A SwiftUI package to beautifully display and handle permissions.
A SwiftUI package to beautifully display and handle permissions.

PermissionsSwiftUI: A SwiftUI package to handle permissions PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by

Cluster's reusable pre-permissions utility that lets developers ask the users on their own dialog for photos or contacts access, before making the system-based request.
Cluster's reusable pre-permissions utility that lets developers ask the users on their own dialog for photos or contacts access, before making the system-based request.

Cluster's reusable pre-permissions utility that lets developers ask the users on their own dialog for photos or contacts access, before making the system-based request. This is based on the Medium post by Cluster describing the different ways to ask for iOS permissions (https://medium.com/p/96fa4eb54f2c).

A unified API to ask for permissions on iOS
A unified API to ask for permissions on iOS

PAPermissions PAPermissions is a fully customizable and ready-to-run library to handle permissions through a ViewController Right now it supports out

RxSwift bindings for Permissions API in iOS.

RxPermission RxSwift bindings for Permission API that helps you with Permissions in iOS. Installation RxPermission is available through CocoaPods. I c

A simple map with the location of the user and the control of permissions

Proposal The project is based on implementing a simple map with the location of

ImagePicker - selecting images from the photo albums, with allowed permissions /on real device accesing the camera
ImagePicker - selecting images from the photo albums, with allowed permissions /on real device accesing the camera

ImagePicker - selecting images from the photo albums, with allowed permissions /on real device accesing the camera, permission also needed/after picking an image it has the possibility to rename it

An iOS pre-permissions utility that lets developers ask users on their own dialog for calendar, contacts, location, photos, reminders, twitter, push notifications and more, before making the system-based permission request.

An iOS pre-permissions utility that lets developers ask users on their own dialog for calendar, contacts, location, photos, reminders, twitter, push notifications and more, before making the system-based permission request.

PrettyColors is a Swift library for styling and coloring text in the Terminal.

PrettyColors is a Swift library for styling and coloring text in the Terminal. The library outputs ANSI escape codes and conforms to ECMA Standard 48.

VT100/Xterm Terminal emulator in Swift
VT100/Xterm Terminal emulator in Swift

SwiftTerm SwiftTerm is a VT100/Xterm terminal emulator library for Swift applications that can be embedded into macOS, iOS applications, text-based, h

Demo using Terminal.Gui with Llama Swift
Demo using Terminal.Gui with Llama Swift

Hola! This repo is a demo which shows the use of Llama Swift with Terminal.Gui. Llama is my exploratory project to compile "other languages" for .NET

Terminal string styling for Swift.
Terminal string styling for Swift.

Terminal string styling for Swift. Integration Swift Package Manager (SPM) You can use The Swift Package Manager to install ColorizeSwift by adding it

Owner
Christian Zangl
My backslash escaped!
Christian Zangl
Terminal TODO application in Swift with ncurses.

stodo Terminal TODO application in Swift with ncurses. Development streamed live

Alejandro Martínez 3 Aug 3, 2022
Project developed as part of a test task by RentaTeam

RentaTeamGiphy Project developed as part of a test task by RentaTeam. There is "endless" prefetching gallery of giphy preview pictures with play video

boogiedimik 0 Oct 9, 2021
A simple iOS App that reads from the Test Flight News API

README Table of contents General info Unit Testing Technologies Revision Updates Setup General info SpaceFlight is a simple app built using the MVVM d

Diego Bustamante 0 Oct 28, 2021
Free Market Selection Process Test

Prueba Proceso de Seleccion Mercado Libre (Xcode Version 13.0, iOS 15) Caracteristicas de la App SearchPortrait SearchLandscape DetailPortrait DetailL

Pedro Ramos 0 Nov 22, 2021
The demo project to show how to organize code to make SwiftUI apps easy to be test.

TestableApp I combined the idea to use functional programming instead of an loader instance in ModelView(I prefer to think of it as a service) and Res

VictorK 2 Jan 7, 2022
Demonstration of using UIWindowScene and SwiftUI to provide a native-looking Mac preferences window in Catalyst

CatalystPrefsWindow Ever wondered how to create a more Mac-like preferences window for Catalyst? Perhaps Settings Bundles are too limiting for the kin

Steven Troughton-Smith 148 Dec 27, 2022
An example project to demonstrate the new scripting capabilities of Shortcuts For Mac.

Scripting Shortcuts Test Project This simple project is designed to test the new scripting capabilities introduced in the Shortcuts app in macOS Monte

Alex Hay 16 Nov 17, 2022
Grid-based app for macOS Catalyst (Mac Idiom) with navigation stack

Catalyst Grid App Simple Catalyst example (Mac idiom) of a grid-based app with a push/pop navigation stack. Includes back button in toolbar that auto-

Steven Troughton-Smith 120 Nov 14, 2022
The missing Apple Weather App for Mac.

BetterWeather The missing Weather App for your Mac and iPad. Installation for mac. Download the notarized, universal binary from here Click the curren

Aayush 21 Jul 31, 2022
iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.

iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.While the cost of storage seems expensive in comparison to other online storage services, its advantage is that it works natively across all your devices.

MindInventory 12 Jul 29, 2022