Having set the project and app configuration, it’s time to add the first source code to the Swift files in your project. There, set the macOS Deployment Target to 10.12 or whatever you set it above. Then select the Project item in the sidebar, above the Targets. As this is going to be a document viewer rather than editor, you could change its Role here, but leaving it set as Editor makes it easier if you do develop it into something bigger. Because you entered earlier as the document extension, this has been completed for you, but is worth checking and tweaking.Ĭhange the Name to PDF, and add the UTI Identifier. In this case, the important section is that listing Document Types, which you should open. This is where you edit what will end up in your app’s all-important ist. If you’re going on to have your app notarized, this is a good time to turn Hardened Runtime on, though. Leaving this turned on by accident is a common way to make your app behave most oddly. Here, turn off the App Sandbox unless you have aspirations to the App Store and are peculiarly masochistic. Then select the Capabilities section at the top. Set Version to 1.0b1, the Signing section to use your certificate as appropriate, and the Deployment Target to 10.12 or whatever you want. This should open the main window with the Target settings ready to edit. ![]() Navigate to an appropriate folder to save your new project, and click Create.
0 Comments
Leave a Reply. |