Common ios problems (Real-time update) and ios real-time update

Source: Internet
Author: User

Common ios problems (Real-time update) and ios real-time update

1. Error code: No ubuntures to compile for (ONLY_ACTIVE_ARCH = YES, active arch = x86_64, VALID_ARCHS = armv7 armv7s)

Command Line Error when building this target. You can search for bitcode in build setting and set enable bitcode to NO.

 

2,Ld: framework not found IOKit

Enter the following two lines on the terminal:

Cd/Applications/Xcode. app/Contents/Developer/Platforms/iPhoneOS. platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/IOKit. framework

Sudo ln-s Versions/A/IOKit.

If not, open the folder and check whether the path is correct. If you have changed the Xcode name, note that if "xcode 5" [with space "", remember to add the "\" symbol to the terminal.]

 

3. If the program is okay, the following error occurs: Directory not empty.

Cached files in/Users/your computer name/Library/Developer/Xcode/DerivedData occupy a large amount of cache space. If you do not delete the cached files in xcode for a long time, the hard disk space will become smaller and smaller until Directory not empty. If the cached file is deleted and then run, no error is reported.

Or, just clean it once.

 

4. Insufficient mac memory... Solution:

The simulator directory is here:

/Users/user name/Library/Application Support/iPhone Simulator/

Your App is built by XCode here:

/Users/user name/Library/Developer/Xcode/DerivedData/YOURPROJECTNAME_SOMETHINGSOMETHING/Build/Products to delete unwanted app projects. Or regularly Delete the old project.

 

5. If the compilation error is similar to: Undefined symbols for architecture armv7:

"_ OBJC_CLASS _ $ _ ASIHTTPRequest", first check whether the preceding dependency code has been added to the compilation list. If not, click Target> Build Phases> Compile Sources, click "+" at the bottom to add the above Code.

If the compilation error is similar to: Undefined symbols for architecture armv7: "_ inflateEnd" and referenced from, the libz dependency is missing. dylib: click Target> Build Phases> Compile Sources, click "+" at the bottom, enter libz in the pop-up list, and add the latest version in the search result.

 

6. Problem: After ld/warning/directory not found for option deletes a directory or file from the project, a warning message is displayed during compilation:Ld: warning: directory not found for option "XXXXXX ":

Sometimes this warning is reported if files and folders have been deleted from the project. Although no error occurs, it looks uncomfortable ..

The method to remove the warning is as follows:

1. Select the project and compile it (targets)

2. Select the Build Settings menu.

3. Search for the Library Search Paths and Framework Search Paths as follows, and delete the compiled warning path, that is, OK.

Related Article

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.