Commands entered in the terminal:
Lipo-create
Release-iphoneos/baidumapapi.framework/baidumapapi
Release-iphonesimulator/baidumapapi.framework/baidumapapi
-output
Release-iphoneos/baidumapapi.framework/baidumapapi
Note:
RELEASE-IPHONEOS/BAIDUMAPAPI.FRAMEWORK/BAIDUMAPAPI is the path of the real machine framework;
RELEASE-IPHONESIMULATOR/BAIDUMAPAPI.FRAMEWORK/BAIDUMAPAPI is the path of the simulator framework;
The release-iphoneos/baidumapapi.framework/baidumapapi behind the-output is the path after the merge.
The following error is encountered when entering the above command line in the terminal:
Xcrun:error:active developer Path ("/applications/xcode 2.app/contents/developer") does not exist, use to xcode-select --switch path/to/Xcode.app
specify The Xcode, wish, and use as command line developer tools (or see man xcode-select
)
Solution:
Execute the following command in the terminal to resolve:
sudo xcode-select-switch/applications/xcode.app/contents/developer
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Problems with merging the real-machine framework and simulator framework in the Baidu Maps SDK