TAG

xcode

  • 2020-02-23
  • 2020-06-30

How To Configure the project with Xcode to support Apple Notarization Service

March 6, 2020  In “How confirm the program satisfied requirements”, --strict option was missing, added it. There are some way to support Apple Notarization Service. From February 3, 2020, if the app want to be notarized, the app need to meet the original notarization prerequisites. This article describe that how to configure the project with Xcode. Notarization Prerequisites Notarization Prerequisites are following: All Executables are need to be code signed. Enable Hardened Runtime of all of the applications and the command line tools (CLI). Use “Developer ID Application Certificate”, “Developer ID Kernel Extension Certificate” or “Developer ID Installer Certificate” to code signing. Include a secure time stamp. “com.apple.security.get-task-allow” or variations are not contained in the entitlement. Linked to macOS 10.9 SDK or later SDK. Code Signing to Executables Configure to sign the executable. Configuration of the application target and the CLI target Set the “Code Signing Identity” to “Developer ID Application” certificate. If you manage the certificate by yourself, set the “Code Signing Style” to “Manual”, “Development Team” to the empty and “Provisioning Profile” to “none”. Configure to sign on copy In the application target configuration, configure to sign on copy frameworks. METHOD 1 : Configure in the General tab […]

  • 2020-02-22
  • 2020-03-02

The UI Testing of the Mac App – Test the Dialog

This article says about the test of the dialog with the UI Testing. Wait until appear The dialog will be opened when you click the button, launch the application, select the menu item and so on. The dialog will be appeared by many ways. However, there is a common thing, waiting until appear. The time interval is slightly changed by the machine spec or the state of the machine. To wait until the dialog appeared without effects from them, the code can be following:

  • 2020-02-21
  • 2020-02-21

Change the mock object with a command line argument

The UI Testing is powerful function that Xcode has. The UI Testing is the one of the unit test, it generate events such as the mouse down event or a key down event, the application responds to them same as user operations. It tests the user interface such as a window content. How ever, it is hard for me. For example, the mock. The mock is used to test functions that are hard to automatically test. For example, the function to communicate with a web server or the real devices. The mock returns results that the application want without real communication with the real servers or devices.. You need to test functions that are replaced with the mock, but it is not important when you test the user interface. To use the mock, the application use a protocol instead of a real class. For example, when the application communicates with the web server which has APIs, create the API protocol, the real class is adopt to this protocol. Also, the mock is adopt to this protocol, then you can use the mock when you test. There is a problem. How to replace with the mock? Use a command line argument […]

  • 2020-02-21
  • 2020-07-18

Update 2020/07/18: System Requirement of Xcode

2020/07/18: Added the Xcode 11.6. When you develop an application which supports old OS, which version of Xcode you should use? This article list up a system requirement of Xcode. System Requirement of Xcode System Requirement of Xcode 11 This list is a system requirement of Xcode 11. Xcode Supported System Platform SDK Debug On Device Xcode 11.6 macOS Catalina 10.15.2 or later iOS 13.6, iPadOS 13.6, tvOS 13.4, watchOS 6.2, macOS Catalina 10.15.6 iOS 8 or later, tvOS 9 or later, watchOS 2 or later Xcode 11.5 macOS Catalina 10.15.2 or later iOS 13.5, iPadOS 13.5, tvOS 13.4, watchOS 6.2, macOS Catalina 10.15.4 iOS 8 or later, tvOS 9 or later, watchOS 2 or later Xcode 11.4.1 macOS Catalina 10.15.2 or later iOS 13.4, iPadOS 13.4, tvOS 13.4, watchOS 6.2, macOS Catalina 10.15.4 iOS 8 or later, tvOS 9 or later, watchOS 2 or later Xcode 11.4 macOS Catalina 10.15.2 or later iOS 13.4, iPadOS 13.4, tvOS 13.4, watchOS 6.2, macOS Catalina 10.15.4 iOS 8 or later, tvOS 9 or later, watchOS 2 or later Xcode 11.3.1 macOS Mojave 10.14.4 or later iOS 13.3, iPadOS 13.3, tvOS 13.3, watchOS 6.1, macOS Catalina 10.15.2 iOS 8 or later, tvOS 9 […]

>現役のプログラマーが書くプログラミング情報

現役のプログラマーが書くプログラミング情報

日々の開発の中での学びや分かったこと、調べたことなどを書いていくブログです。

CTR IMG