IOS common error analysis solution (always updated) You Deserve To add to favorites-Comprehensive stickers

Source: Internet
Author: User

-Many common errors are summarized from favorites.

1: clang failed with exit code 254

I. Check whether NSLog has printed the void value returned in the code.


2: Verify exit code of build task with internal identifier 'copypngfile 123.png'


I. Will the wrong png be uploaded using PhotoShZ? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> memory + Memory + 1eLR + bxezbzgr1_0kgxyl3pus/ky1_vcd4kpha + Memory + CjxpbWcgc3JjPQ =" http://www.2cto.com/uploadfile/2014/0509/20140509112551421.png "alt =" \ ">

I. Determine whether a custom class file exists in the static library. If no class file exists, this error will occur. This is why the new static library contains a default class.

4: _ OBJC_CLASS _ $ _ UIMainKpiXML ", referenced from:

1: Check whether the Project Target has been specified for a class file


2: Check whether the class file is inBulid PhasesInCompile SourceInclude this class file?


After the preceding two steps are checked, if an error is reported during compilation, close XCode and try again.

5: for architecture armv7s



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

Yes you are right about armv7s is 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 description indicates that the specified framework does not support armv7s, so it does not support iPhone 5 equipped with A6 processors.

    If you still compile the framework or static library in the project, it may be caused by the following settings. Set it to NO.



    6: Local declaration of "'hides instance variable

    1: private variables and attribute variables with the same name


    7: Instance variable ''accessed in class method


    1: attribute variables of the class cannot be used in static methods; otherwise, an error is reported.

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


    1: The attribute "_ stroyboard" is not declared in the target class!


    So just declare it? Note: XCode4.5 will be declared by default, but it is only for custom classes and the system class does not exist. Therefore, be careful


    1. @ Synthesize storyboard;

      9: Invalid mselector may cause a leak because its selector is unknown

      Use the following code to solve the generated compiler warning:


      1. # Pragma clang diagnostic push
      2. # Pragma clang diagnostic ignored "-Warc-starter mselector-leaks"
      3. [Self defined mselector: nextView];
      4. # Pragma clang diagnostic pop
        Source: (http://www.ooso.net/archives/620)

        10: unable to open executable

        1: Check whether two or more files of the same type exist in the same static library or project.

        2: delete the application in the simulator, delete the DerivedData folder, and restart XCode.


        11: Property's synthesized getter follows Cocoa naming convention for returning 'owner' objects

        Do not declare a variable name starting with new copy in the header file.

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


        12: ld: file not found:

        1: The specified static library is not found.



        14: _ utf8_countTrailBytes

        Add library libicucore. dylib


        15: Stray "@" in program

        This is because the compiler version used by the project is too low. Modify the compiler version to the latest version, for example:


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



        16. Solve the Problem When debugging the iPad Air device on a real machine: architecture not supported method 1. Delete the arm64 of ubuntures --> Valid ubuntures in Build Settings, leaving only armv7 and armv7s

        2. Change ubuntures --> ubuntures to $ (ARHS_STANDARD) armv7 and armv7s.

        3. Change Build Active Architecture Only to NO.

        4. compile.

        17. During Compilation: Not supported ARM architecture

        Solution: Add-d1_arm_arch_5tej _ to./configure __

        Another article: Analysis of common Android errors

        18. Couldn "t register xxx. xx. xx with the bootstrap server. Error: unknown error code.
        This generally means that another instance of this process was already running or is hung in the debugger.
        Every developer Using ios Simulator for development in xcode should have encountered the error shown above. The most effective solution is to restart the mobile phone. Or restart your computer. We recommend that you remember to stop the program in the future.


        I don't know how you can share it. Or do you know the cause of this situation.

        This article has been updated. I hope you will actively reply to common errors you know to participate in this article's update. ^_^


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.