Test experience of Swift framework on Xcode 6

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.