into Swfit (iv) could not insert new outlet

Source: Internet
Author: User
Tags delete key

Encounter this problem in swift, and use the following method to solve

1. There is no option to add this class to the corresponding "Target" When creating a new class.
2. Re-add files to the project
The procedure is to select the problematic. m and. h files, click the Delete key, and then select "Remove Reference" so that the file is not actually deleted. Then select the "file-and Add files to ..." menu and choose the. m file and the. h file to re-join the project in the document selection screen.
3. Delete Derivedata directly
The procedure is to close the current project, then close Xcode, and then locate the following directory through terminal or the Finder:
~/library/developer/xcode/deriveddata
Find the files that begin with your project and delete them.
Then restart Xcode
4. Delete the project's Derivedata in organizer
If you do not understand the Mac operating system, do not know if the operation of the 2nd solution, there is a more direct way, is to select "Windows->organizer" in Xcode, then select "Projects", select the project you are working on, click " Derivedata "Delete" button, Xcode will delete the item's Derivedata and then automatically regenerate one.
I met the same problem with Method 2 solved the http://www.cocoachina.com/bbs/read.php?tid=136375

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.