Baidu Map SDK provides the emulator and the real machine two environment used by the static library files, respectively, stored in the Libs/release-iphonesimulator and Libs/release-iphoneos folder, we need Drag and drop the. A file for the corresponding platform to the groups&files on the left side of the Xcode project, with the disadvantage that it needs to be re-added every time the real machine and emulator are compiled. To avoid this situation, we can synthesize this 2. A package in one, using the Lipo command:
1 Opening the terminal
2 Enter the path of the lipo-create release-iphoneos/libbaidumapapi.a path release-iphonesimulator/libbaidumapapi.a-output destination file path LIBBAIDUMAPAPI.A
3 Practice: First enter the lipo-create to drag 2 packets into the terminal and finally add-output corresponding path
4 Enter to the path you specified ...
This is my command:
lipo-create/users/apple/downloads/baidumap_iossdk_v2/baidumap_iossdk_v2.5.0_lib/release-iphoneos/ libbaidumapapi.a/users/apple/downloads/baidumap_iossdk_v2/baidumap_iossdk_v2.5.0_lib/release-iphonesimulator/ Libbaidumapapi.a-output/users/apple/desktop/baidumap/libbaidumapap.a
appledemacbook-pro:~ apple$
iOS Baidu map Use the Lipo command to merge the device and Emulator's. A into a common. a file