iOS Common error Analysis resolution (always updated) you are worth collecting-comprehensive stickers

Source: Internet
Author: User

-From the collection summary of a lot of common mistakes

1:clang failed with exit code 254

One: Check if there is a NSLog in the code that prints a value that returns void.


2:verify exit code of build task with internal identifier ' Copypngfile 123.png '


One: will be the wrong PNG, with Photoshop once again, assuming that Photoshop cannot open, change the suffix to jpg try. When converting, use: Save the format format used by the Web or device to convert to PNG-24 This picture is the right size


3:

One: Determine whether the static library has its own defined class file, assuming that there is no one, there will be such an error, which is why the new static library includes a default class.

4: _objc_class_$_uimainkpixml ", referenced from:

1: The test class file has specified the project Target


2: Whether the class file is included in the Bulid phases Compile Source contains this type of file


After the above two steps are checked, assuming that the compilation also reported error, please try to completely turn off Xcode again to try to compile.

5:for Architecture armv7s



Following excerpt from: http://stackoverflow.com/questions/12570116/what-is-the-difference-between-arm7-and-arm7s

Yes right about armv7s was about the IPhone 5. Here some summary Info I found on the Web:

    • ARMv6 ISA (used by the ARM11 core in the iphone 2G and iphone 3G)
    • ARMV7 (used by modern ARM cores, iphone 3GS, iphone 4 and 4S)
    • armv7s (new A6 SoC for IPhone 5).

Note: The error meaning indicates that the specified framework does not support support for armv7s and does not support iphone 5 with A6 processors.

Assuming that you compile the framework or the static library in project, it is possible that the following settings will cause it to be set to No



6:local declaration of ' hides instance variable

1: The private variable has the same name as the property variable


7:instance variable "accessed in class method


1: The static method cannot use the property variable to the class, otherwise the above error is reported

8:Ld:symbol (s) not found for architecture i386


1: Inside the meaning said: "_stroyboard" This attribute in the target class is not declared at all!


Let's just declare it, huh?

Note: XCode4.5 will be declared by default, but only for its own definition class, the system class has not yet. So, be careful.


    1. @synthesize Storyboard;

9:performselector may cause a leak because it selector is unknown

Resolve the resulting compiler warning by, for example, the following code


  1. #pragma clang diagnostic push
  2. #pragma clang diagnostic ignored "-warc-performselector-leaks"
  3. [Self performselector:nextview];
  4. #pragma clang diagnostic pop

Source: (http://www.ooso.net/archives/620)

10:unable to open executable

1: Detect if there are two or more similar files in the same static library or project

2: Remove the app from the emulator, delete the Deriveddata directory and start Xcode again.


11:property ' s synthesized getter follows COCOA naming convention for returning ' owned ' objects

Do not declare the variable name in the header file to start with new copy

References: http://kongbei888.blog.163.com/blog/static/24326613201261902510652/


12:ld:file not found:

1: Point to Static library not found



: _utf8_counttrailbytes

Add Library Libicucore.dylib


15:stray "@" in program

Project uses a compiler version number that is too low. Change the compiler version number to the latest version number, for example:


References: http://stackoverflow.com/questions/12821938/stray-in-program-with-nsdictionary-definition



16. Troubleshooting Errors when you debug your ipad Air device on a real machine: architecture not supported approach1. Delete the arm64 of architectures--> Valid architectures in Build Settings. Just stay armv7, armv7s.

2. Ibid. Change Architectures-->architectures to $ (arhs_standard) armv7. armv7s

3. Change build Active Architecture only to No

4. Compile to

17. Compile-time appearance: not supported ARM architecture

Workaround: Increase-d__arm_arch_5tej__ at./configure

Another article:android common error analysis

18.Couldn ' t register xxx.xx.xx with the bootstrap server. Error:unknown error code.
This generally means, another instance of this process were already running or is hung in the debugger.
Every developer who develops with the iOS simulator under Xcode should encounter the errors seen above. The best way to find out now is to restart your phone.

You can also restart the computer by the way.

It is recommended that you do not immediately uninstall the program

This article has been updated to hope that everyone will respond to the common error you know to participate in this update ^_^


iOS Common error Analysis resolution (always updated) you are worth collecting-comprehensive stickers

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.