How do I set tick/check marks at a menu item at runtime?   Main menu -> Submenu -> Item   My best shot is this code, which compiles OK:           let mainMenu = NSApplication.shared.mainMenu!         let subMenu = mainMenu.item(withTitle: “Main menu”)?.menu         let menuItem…

I’m updating a small iOS app that was originally written in Swift 3 to Swift 5. The conversion went without any problems. When I attempt to run the app on an iPhone X, the app crashes upon launch with this message:   *** Terminating app…

I have this error installing the app on the physical device with ios13.2.3   someone can help me   Thank you!!!   Details   Unable to install “Apu” Domain: com.apple.dtdevicekit Code: -402636802 — App installation failed Domain: com.apple.dtdevicekit Code: -402636802 Failure Reason: An unknown error…

Hi all: I am working on a POC IOS app that needs to authtenticate to a SA+QL Server Azure database. I wrote a web service in .NET, also osted on Azure, and found some examples that let me write the code below in my IOS…

Have a objc compatible enum as var str = “Hello, playground”   @objc public enum TestEnum:Int{     case String1     case String2 }   let testValue = TestEnum.String1   print( testValue) //prints TestEnum print(String(describing: testValue)) //prints TestEnum   Is there a singleline statement that would…