iOS Baidu map Use the Lipo command to merge the device and Emulator's. A into a common. a file

Source: Internet
Author: User

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

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.