Test experience of Swift framework on Xcode 6
I spent most of the summer pondering what Swift can do as a function as a programming language. Now I have moved to using Swift to develop library files. I spent a day and finally found that the previous Swift feature exploration was a pleasant experience. I found that I still need to learn how to do some basic things, the following are some problems I encountered in the default framework test settings.
I am creating a project for creating a new Cocoa framework in the Swift language. However, in the default settings, these problems will not be followed until the test is complete. You will mistakenly think that after an App is completed, the "Cmd + U" test will run, then you are wrong. At this time, most of the options in the "Product" menu are not available, and when you try to use the shortcut key, it will suddenly sound like "you cannot do this operation", as if the heart is sinking.
By default, the test package is not added to the test configuration of the framework build solution. The solution is to name your framework as "test" (I name it like this), select it, and click "Edit Scheme ...) :
Go to the Test option and click the + button in the lower-left corner of the details page on the right:
Select your test package (you know why I named it test ):
Now all the test shortcuts are available, and you can start to work (if you cannot run the shortcut keys, it is because your framework itself cannot run ).
Happy test!
Via: nomothetis.svbtle.com