ios 가 실제 컴퓨터 와 시 뮬 레이 터 를 합 친 a 파일 (lipo)

3652 단어 ios
         :http://blog.csdn.net/yangtb2010/article/details/8916442
        ...
  mac     
lipo -create SQY/iOS/iphoneos/libGamePlusAPI.a SQY/iOS/iphonesimulator/libGamePlusAPI.a  -output SQY/iOS/libGamePus.a

  SQY/iOS/iphoneos/libGamePlusAPI.a //
SQY/iOS/iphonesimulator/libGamePlusAPI.a //      
-output SQY/iOS/libGamePus.a //           

                 
lipo -info SQY/iOS/libGamePus.a  //      armv7 i386                     armv7      i386    
Architectures in the fat file: SQY/iOS/libGamePus.a are: armv7 i386

Xcode  Aggregate   run script     lipo

set -e
set +u

if [[ $SF_MASTER_SCRIPT_RUNNING ]]
then
exit 0
fi
set -u
export SF_MASTER_SCRIPT_RUNNING=1

INSTALL_DIR=${SRCROOT}/bin/
DEVICE_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphoneos
SIMULATOR_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphonesimulator
SF_TARGET_NAME="DurianKit"
SF_EXECUTABLE_PATH="lib${SF_TARGET_NAME}.a"

if [ -d "${INSTALL_DIR}" ]
then
rm -rf "${INSTALL_DIR}"
fi

mkdir -p "${INSTALL_DIR}"

xcodebuild clean -project "${PROJECT_FILE_PATH}" -target "${SF_TARGET_NAME}" -configuration "${CONFIGURATION}" -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" OBJROOT="${OBJROOT}" BUILD_ROOT="${BUILD_ROOT}" SYMROOT="${SYMROOT}" $ACTION

xcodebuild clean -project "${PROJECT_FILE_PATH}" -target "${SF_TARGET_NAME}" -configuration "${CONFIGURATION}" -sdk iphoneos BUILD_DIR="${BUILD_DIR}" OBJROOT="${OBJROOT}" BUILD_ROOT="${BUILD_ROOT}" SYMROOT="${SYMROOT}" $ACTION

lipo -create "${DEVICE_DIR}/${SF_EXECUTABLE_PATH}" "${SIMULATOR_DIR}/${SF_EXECUTABLE_PATH}" -output "${INSTALL_DIR}/${SF_EXECUTABLE_PATH}"

xcodebuild clean -project "${PROJECT_FILE_PATH}" -target "${SF_TARGET_NAME}" -configuration "${CONFIGURATION}" -sdk iphoneos -arch arm64 BUILD_DIR="${BUILD_DIR}" OBJROOT="${OBJROOT}" BUILD_ROOT="${BUILD_ROOT}" SYMROOT="${SYMROOT}" $ACTION

lipo -create "${DEVICE_DIR}/${SF_EXECUTABLE_PATH}" "${INSTALL_DIR}/${SF_EXECUTABLE_PATH}" -output "${INSTALL_DIR}/${SF_EXECUTABLE_PATH}"






좋은 웹페이지 즐겨찾기