iOS packaged framework real machine and emulator compatible merge version-detailed introduction steps

Source: Internet
Author: User
Tags macbook

Package framework, when testing:

1, with the simulator packaging, testing can only run in the simulator

2, with the real machine packaging, testing can only run in the real machine

So how do you make a version compatible with both of these scenarios?

Resolved as follows:

1. Open Terminal

2. Input lipo-create "Simulator package path" "True Machine package path"-output "Export compatible version path "

======================= Example demo==========================

Preparation Prerequisites:

--assuming that we have completed the package and that both the simulator and the real machine can be compiled and passed.

---first compiled under the simulator and under the real machine.

Implementation steps:

1. Right-click to open the package and display it in finder

2, normal We will see these, (here I generally used to set the release environment), the focus is the third red box, this is what we want to merge things.

3, here I for a short path (easy to watch below), the Desktop new folder:

And then the show in the finder of the two package files, the overall copy to the corresponding folder,

4. Open Terminal: Drag blue Check to terminal, view path

5. Use the command I wrote at the beginning:

lipo-create/users/macbook/desktop/Merging framework/simulator/intelligentcollegetob.framework/intelligentcollegetob/users/ macbook/desktop/merging framework/Real Machine/intelligentcollegetob.framework/intelligentcollegetob-output/users/macbook/ desktop/Merging Framework/intelligentcollegetob

6. The results are as follows:

There will be one more file here, this is the combination of the simulator and the real machine proof of compatibility.

7, the last is very simple

Copy a package from a real machine, and then replace the 6 file with the one that is compatible with the version package.

iOS packaged framework real machine and emulator compatible consolidated version-detailed guide steps

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.