I spent most of the summer figuring out what Swift can do as a functional programming language, and now I have moved on to using Swift to develop libraries. I spent a day and found that the Swift feature exploration I did before was quite enjoyable. I found that I still need to learn how to do some of the most basic chores. Here are some of the problems I encountered under the default framework test settings. I had some issues when I was creating a new Cocoa framework project in Swift. However, with the default settings, these problems only occur when testing. You may mistakenly think that after completing an app, pressing "Cmd+U" will run the test, but you are wrong. At this time, most of the options in the "Product" menu are unavailable, and when you try to use shortcuts, you will suddenly hear a prompt sound that makes your heart sink like "You can't do this operation". Because by default, the test package is not added to the test configuration of the framework build scheme. The solution is to name your framework "test" (as I did), then select it and click "Edit Scheme...": Then go to the "Test" option and click the "+" button in the lower left corner of the detailed interface on the right: Select your test package (now you know why I named it test): Now all the test shortcuts are back and you can start working (if the run shortcuts don't work then it's just because your framework itself can't run). Happy testing! via: nomothetis.svbtle.com |
<<: iOS programmer interview questions to pay attention to
Today, PS4 and XBOX ONE dominate the traditional ...
Source: Dr. Curious...
As the national faces, the UK has BBH, the US has ...
Color is a language of plants. Through colors, we...
Since April, I have repeatedly heard that the ope...
Without further ado, let’s get straight to the po...
Algorithms are an indispensable evaluation mechan...
Recently, more and more customers have been askin...
When you arrive in a new place, your safety will ...
At the end of September, WeChat officially launch...
North Star Business School's JD No-Source Sto...
Review expert: Ran Hao, a well-known popular scie...
The three core indicators of product operation ar...
The core significance of the Xiaohongshu APP: Xia...
Produced by: Science Popularization China Author:...