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!