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