Common errors in iOS development

Source: Internet
Author: User

-From the collection summary of a lot of common mistakes

1:clang failed with exit code 254

One: Detects 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 '

A: Will the error PNG, with Photoshz yo? " http://www.2cto.com/kf/ware/vc/"target=" _blank "class=" Keylink "> Vcnby0mlxqru70ru0ziwgimjnuftqag90b1nob3c08rk7v6osums689e6zqpkcgcgyttk1c4g16q7u8qxlmfryrntwya6phn0cm9uzz605rsizqpxzwk78sno sbjl+cq508o1xcyjmjy2odq7yr08l3n0cm9uzz4mizi2njg0o8q916q7u7pjphn0cm9uzz4gue5hlti0pc9zdhjvbmc+1elr+ bxezbzgrltz0kgxyl3pus/kyjwvcd4kpha+cjxicj4kpc9wpgo8cd4kphn0cm9uzz4zojwvc3ryb25npjwvcd4kpha+cjxpbwcgc3jjpq== " Http://www.2cto.com/uploadfile/2014/0509/20140509112551421.png "alt=" \ ">

One: Determine if there is a custom class file in the static library, and if not, this error will occur, which is why the new static library contains a default class.

4: _objc_class_$_uimainkpixml ", referenced from:

1: Detects if the class file has specified project Target

2: Detects if the class file Compile Source in Bulid phases contains this class file

After the above two steps are checked, if you compile the also reported error, try to completely turn off Xcode to compile again.

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.

      If the compilation is still in the project of the framework or the static library, the following settings may be the result, 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 is declared by default, but only for custom classes, not the system class. So, be careful.


      1. @synthesize Storyboard;

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

        Resolve the resulting compiler warning with 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, remove the Deriveddata folder and restart Xcode.

          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

          Reference: 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

          The compiler version used by the project is too low. Modify the compiler version to the latest version, such as:

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

          16. Troubleshoot errors when you debug your ipad Air device on a real machine: Architecture not supported Method 1. architectures--> Valid in Build Settings Architectures arm64 deleted, only left ARMV7, armv7s

          2. Ditto, 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: Add-d__arm_arch_5tej__ when the./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 error shown above, and the most effective solution is to restart the phone. If you don't, you can restart the computer. After the suggestion remember stop on the line do not run directly uninstall the program


          I wonder if you have any good ways to share the next. Or whether you know the cause of the situation.

Common errors in iOS development

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.