Click the Options button next to the test target to open a popover. Select the Randomize execution order checkbox to run your tests in random order.

]]>https://meandmark.com/blog/2018/11/xcode-10-running-tests-in-random-order/feed/0Xcode 10: Clean Build Folderhttps://meandmark.com/blog/2018/10/xcode-10-clean-build-folder/
https://meandmark.com/blog/2018/10/xcode-10-clean-build-folder/#respondMon, 29 Oct 2018 18:20:15 +0000https://meandmark.com/blog/?p=1200In Xcode 10 you no longer need to hold down the Option key to clean the build folder. You can just choose Product > Clean Build Folder.
]]>https://meandmark.com/blog/2018/10/xcode-10-clean-build-folder/feed/0Imported and Exported UTIshttps://meandmark.com/blog/2018/10/imported-and-exported-utis/
https://meandmark.com/blog/2018/10/imported-and-exported-utis/#respondWed, 24 Oct 2018 19:05:48 +0000https://meandmark.com/blog/?p=1191If you create a document-based app project in Xcode, select the app target in the project editor, and click the Info button, you will see sections for imported and exported UTIs. If you have any of the following questions:

What is a UTI?

When would I use an imported UTI?

When would I use an exported UTI?

Keep reading because this articles answers those questions.

What is a UTI?

A UTI is a Uniform Type Identifier that uniquely identifies a file type. Apple has a list of system-declared UTIs, but it’s not being actively maintained. For example a plain text file has the UTI public.plain-text. Most common file types have public at the start of their UTIs.

If you create a new file type, you must create a UTI for it. The UTI should take the form com.CompanyName.FileType.

When to Use an Imported UTI

Use imported UTIs when your app edits file types that it doesn’t own. Suppose you’re developing an image editor. Your image editor edits image files in multiple file formats, such as PNG, JPEG, and TIFF. You would add an imported UTI for each file type the image editor can edit.

When to Use an Exported UTI

Use an exported UTI for any file types your app owns. When you create a new file type for your app’s documents, your app owns that file type, and you should create an exported UTI for the file type. The exported UTI lets the operating system and other apps know about the new file type.

]]>https://meandmark.com/blog/2018/10/imported-and-exported-utis/feed/0Swift Dev Journalhttps://meandmark.com/blog/2018/10/swift-dev-journal/
https://meandmark.com/blog/2018/10/swift-dev-journal/#respondFri, 19 Oct 2018 04:02:43 +0000https://meandmark.com/blog/?p=1189I want to let you know about a new site I launched, Swift Dev Journal. Swift Dev Journal has articles to help iOS and Mac developers create apps in Swift.

None of the blog posts here are moving. Regarding future writing, longer articles and tutorials about iOS and Mac development will be on Swift Dev Journal. This blog will contain tips and shorter articles, such as the changes in new versions of Xcode, as well as articles that wouldn’t fit at Swift Dev Journal.

]]>https://meandmark.com/blog/2018/10/swift-dev-journal/feed/0Xcode 10: Projects Use New Build Systemhttps://meandmark.com/blog/2018/10/xcode-10-projects-use-new-build-system/
https://meandmark.com/blog/2018/10/xcode-10-projects-use-new-build-system/#respondMon, 01 Oct 2018 04:02:16 +0000https://meandmark.com/blog/?p=1186In Xcode 10 projects use the new build system by default. If you want to use the legacy build system in a project, choose File > Project Settings. Choose Legacy Build System from the Build System menu.
]]>https://meandmark.com/blog/2018/10/xcode-10-projects-use-new-build-system/feed/0Xcode 10: See Changed Code in Editorhttps://meandmark.com/blog/2018/09/xcode-10-see-changed-code-in-editor/
https://meandmark.com/blog/2018/09/xcode-10-see-changed-code-in-editor/#respondThu, 27 Sep 2018 04:03:09 +0000https://meandmark.com/blog/?p=1184If your Xcode project is under version control, Xcode’s editor highlights the changes you make to the code. When you add or change code, Xcode places a blue bar on the left edge of the editor.

Clicking the blue bar opens a popover to discard the change. For some reason you can’t commit changes from the editor. You can only discard changes.

If you remove code, there may be a blue dot instead of a blue bar in the editor. Click the dot to discard the change and restore the code you removed.

Other Bar Colors

The blue bar on the left side of the editor window is the most common color you’ll see. But Xcode also has the following color bars for source control changes:

A gray bar indicates changes you committed locally but did not push to a remote repository.

Starting in Xcode 10 you can add your Xcode project to Bitbucket or GitLab from Xcode. Open the Source Control navigator by choosing View > Navigators > Show Source Control Navigator. Select the Remotes folder, control-click, and choose Create Remote. A sheet opens.

Choose your account from the Account menu. Click the Create button to add your project to Bitbucket or GitLab.

]]>https://meandmark.com/blog/2018/09/xcode-10-improved-bitbucket-and-gitlab-support/feed/0Xcode 10: Library Moved to Toolbarhttps://meandmark.com/blog/2018/09/xcode-10-library-moved-to-toolbar/
https://meandmark.com/blog/2018/09/xcode-10-library-moved-to-toolbar/#respondMon, 17 Sep 2018 18:26:50 +0000https://meandmark.com/blog/?p=1174In Xcode 10 the Library, where you access things like code snippets and user interface elements, is no longer in the lower right portion of the project window. The button to access the Library has been moved to the right side of the toolbar, next to the buttons to show the various editors.

Click the Library button to open the Library in a separate window. Option-clicking the Library button keeps the window open, which helps a lot when you’re building your app’s user interface.

The specific library that opens depends on the file you’re currently viewing/editing. If you’re in a source code file, clicking the Library button will open the code snippets library. If you’re in a xib file or storyboard, clicking the Library button will open the object library that contains the UI elements.