Ios-xcode frequently reported classic error solutions Daquan

Source: Internet
Author: User
Tags uikit

1. Error message:

2015-10-28 10:39:55.933 xfw[2696:55982] * * * assertion failure in-[uitableview _configurecellfordisplay:forindexpath:] ,/sourcecache/uikit_sim/uikit-3347.44.2/uitableview.m:7524

(LLDB)

Error reason: The code that returns the cell is not in the range of parentheses, look at the scope of the surrounding code. Sometimes there are too many brackets and it is easy to put the wrong code.

2. Error message:

(1) Reason: '-[__nscfnumber isequaltostring:]: Unrecognized selector sent to instance 0xb000000000000043 '

(2) Reason:-[__nscfnumber length]: Unrecognized selector sent to instance 0XB0000000000029A3

Error reason: NSString and nsnmuber no conversion, direct error!

3. Error message:

Could not load the "" image referenced from a nib in the bundle with identifier "Com.xfw.leo"

Error reason: The control in Xib is associated with the class drag line, but after the control is deleted directly, the line is still in, so error!

4 Error message:

Linker command failed with exit code 1 (use-v to see invocation)

Cause of error: Name two class with the same name or cannot find the. m class file to import.

5. Error message:

<__NSArrayM:0x7fca5d175890> was mutated while being enumerated.

Reason for error: Assigning values to an array while modifying values in the array

6. Error message:

' Nsinvalidargumentexception ', Reason: ' * * *-[__nsplaceholderdictionary InitWithObjects:forKeys:count:]

Error reason: Using [__nsplaceholderdictionary InitWithObjects:forKeys:count:] This initialization method, found that the keys count and the number of objcects does not match. When using @{@ "key": value} This way, it is important to determine whether the value is nil, and nil to join the dictionary

7. Error message: A red error occurred in project conflict or class file conflict

Error reason: Two people modify, delete the structure or code of the project at the same time. Delete the conflicting files in the Showinfinder, delete the redundant < < < = = in the class file and project and click on SVN resolve.

8. Error message:

Cause: 1. There are classes in Showinfinder, but there are no imported classes in the left column.

The 2.m file was mistakenly deleted.

3. When introducing a third-party library, the. m file is not added to compile! Or the framework is not added.

9. Error message: The red alert appears in Arc

Workaround:

10 error message:. Implicit declaration of function "" is invalid in C99

Error reason: Write down the Block's callback

11. Error message: The operation couldn ' t be completed. (launchserviceserror error 0.)

Method: Reset under the simulator

12. Error message: reported "_objc_class_$_xxxservice", referenced from: Red error

Undefined Symbols for Architecture i386:

"_objc_class_$_xx file name", referenced from:

The following are the causes and modifications that may cause such problems:

(1). Related project file not imported

You can directly in here + come in, you can also in the left engineering directory to all re-guide the document (in the case of multi-person operation of the project, the general approach)

(2).. Framework file not imported

Put xx file library + come in, this question "_objc_class_$_asidentifiermanager", is because Adsupport.framework class library does not add

(3). File path is missing, check if some file paths are not added or incorrectly written

Project Compile report: Undefined Symbols for Architecture i386: and "_objc_class_$_xx", referenced from: error, the problem is largely due to the above situation, the various aspects of the basic check is OK.

(4) Delete an extra folder or image locally, such as deleting a folder locally, did not submit to the SVN server, and then the SVN deleted the Server a folder, then the error.

The correct approach: delete the local a folder first, then submit to SVN, and then remove the A folder.

13. Error message:

'-[uiviewcontroller _loadviewfromnibnamed:bundle:] Loaded the "Xxxview" nib but the view outlet is not set. '

Check the book only know, did not do nib file to the Xxxviewcontroler Program Association, hereby recorded:

Procedure 1:

A, open the nib file

b, click "File s Owner", press COMMAND+4, set class to Xxxviewcontroler

C, according to control+ "Files ' Owner", there is a default Iboutlet variable view, see if there is no link in the back, if not pull to the following view and views to do an association

Procedure 2: There may be xcode problem, Xcode itself with memory function, you may have modified, or deleted, but Xcode is not recognized, continue with the default, so out of the above method, you can re-establish xib and give different view names

14. After adding the class file, the file path cannot be found, and the error is as follows:

Way:

First step: Copy the last path and search for the path in build settings

Step two: Delete the generated path

15. Error message: Clang:error:no such file or directory: '/users/user/desktop/learn rich/pods/afnetworking/uikit+afnetworking/ AFAUTOPURGINGIMAGECACHE.M '

Clang:error:no input Files

Reason: 1. The. m file cannot be found in the Showinfinder or on the left column.

2. The. m file in compile sources under build phases turns red or gray.

Method: 1. Re-import the. m file h or re-add the. m file to compile

15. Error message: The approximate meaning is not to set the Bitcode to Yes

Method: Set bit code to No

No such file ...

Cause: A framework or file could not be found

Method: see no such file behind what is what, one may not find the framework, two may not find the file.

(1) If the framework is not found, the method is as follows:

(2) If the file is not found

Here's how: Copy the path behind the PCH in build setting, then delete the generated path.

17. When Bridgeheader import OC header file times can not find the Pods header file error, the error is as follows:

The solution is as follows:

If the above article to you in the future development can come in handy, please pay attention to or point to like it, I will not regularly to you to share or recommend some good articles oh ^_^



Jason_wong
Links: https://www.jianshu.com/p/0c0b14a67a6d
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

Ios-xcode frequently reported classic error solutions Daquan

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.