Linked dylibs built for GC-only but object files built for retain/release for architecture x86_64

Source: Internet
Author: User

Compile the open-source Xcode plug-in SCXcodeSwitchExpander

Source Code address: https://github.com/stefanceriu/SCXcodeSwitchExpander

Compiling environment: Xcode5.1

System Version: OSX 10.8.5

The following error message is displayed:

 

 

Considering whether it is caused by ARC, we found that building setting has already set up to enable arc, and dylib is not used in the project. Only the following static libraries are available.

Search for these library files and find that the SDK does not exist in Frameworks.

The Framework search paths in building setting finds that the library file is in the Xcode application. The path is as follows:

$ (System_cmd_dir)/Xcode. app/Contents/SharedFrameworks $ (system_cmd_dir)/Xcode. app/Contents/Frameworks $ (system_cmd_dir)/Xcode. app/Contents/OtherFrameworks

 

Cause: Because multiple versions of Xcode are installed in the local application, the system automatically searches for the framework in Xcode. app by default, as shown below:

Modify the path in the Framework search paths to the Xcode currently compiled and compiled successfully.

 

 

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.