iOS Development Notes-Baidu Map (third party libraries)

Source: Internet
Author: User

Recently made a Baidu map, after importing the SDK encountered some problems compiling error: Linker command failed with exit code 1 (use-v to see invocation)

Think of a lot of ways, check a lot of information, finally solved.

Possible causes:

1. There are duplicate. m files, or not imported

Workaround: Duplicate Delete is required

In the left navigation bar of the work target-->build phases-->compile sources, all the. m files of the third library are added to the inside

2.the value of Valid architectures in Mischief

Workaround:

Change the value of Valid architectures to ARMV7
Process:
PROJECT--Build Settings--and architectures--Valid architectures his value was ARMv7 armv7s (ios6.0) Remove the armv7s
The same operation
TARGETS---Build Settings---architectures and Valid architectures make the same changes

3 path does not include importing multiple static library files with duplicate paths

Third-party static libraries (. A files) are added

Build settings->search path->library Search Paths Add the appropriate path to the static library to remove the error

Baidu gives 3 ways to add a path (HTTP://DEVELOPER.BAIDU.COM/MAP/WIKI/INDEX.PHP?TITLE=IOSSDK/GUIDE/HELLOBAIDUMAP) carefully check the addition of the added

There will be no problem.

In the course of learning, there are too many reasons for this mistake, here do not enumerate the trust carefully check, find out why, the problem must be solved.

If you encounter similar problems can be exchanged together, welcome!

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.