Summary of various compilation errors for IOS

Source: Internet
Author: User

1, Error:macro names must be identifiers yourproject_prefix.pch

Cause: Because you soiled the preprocessor macro, it was modified when it was in <multiple values>

Workaround: Configiration Select all Configirations, clear it and redefine your DEBUG,RELEASE,DISTRIBUTIN preprocessor macro separately

2. Warning:no rule to process file ' $ (project_dir)/loadingview.h ' of type sourcecode.c.h for Architecture ARMv6

Reason: Target compile sources contains the header file, where the face does not need a header file

Workaround: Delete the header file from target compile sources

3. Command/developer/platforms/iphoneos.platform/developer/library/xcode/plug-ins/iphoneos Build System Support.xcplugin/contents/resources/copypng failed with exit code 1

Cause: PNG image file copy failed, look at the information above to suggest can ' t find which file, generally is deleted from the file system files without the result of Xcode deletion, Xcode project configuration file still records the reference of this file

Workaround: Add the appropriate file to the filesystem or delete it from Xcode's groups & files, or delete it from Target's copy Bundle resources

4. Code sign error:the identity ' iPhone developer:your Name ' doesn ' t match any valid certificate/private key pair in the Default Keychain

Cause: Signature Error

Workaround: Modify signature, Code Signing, Build, Target, Get Info

Remember that the configuration type in the upper-left corner corresponds to the current build type (Debug, Release, distribution), or change to white

5, could not create bundle folder for versioned model *.moda (as if this suffix name of this file)

Cause: compiling Once will result in a new

Solution: should be compiled out of the Moda files are deleted, and then clean under the project, re-build can

6, Error:there is no valid certificate/private key pairs in the default keychain

7. Error:cannot assign to "self" outside of a method in the Init family

Cause: You can only be assigned to self in the Init method, and Xcode determines whether the Init method rule: method returns the ID, and the name starts with the init + capital Letter + other as the guideline. For example:-(ID) initwithxxx;

Error Code :-(ID) myinit{

self = [super init];

......

}

WORKAROUND:-(ID) initwithmy

{

self = [super init];

}

Summary of various compilation errors for IOS

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.