1.「Product」->「Scheme」->「Edit Scheme」,切到「Run」分頁,將「Build Configuration」切換為「Release」。 2a. 分別build出simulator lib and iphone lib,再執行合併程式 lipo -create $(PATH_TO_libMZKit-iphonesimulator.a) $(PATH_TO_libMZKit-iphoneos.a) -output libMZKit.a 2a. Add Run Script # define output folder environment variable UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal Step 1. Build Device and Simulator versions xcodebuild -target TargetName ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" xcodebuild -target TargetName ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" make sure the output directory exists mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" Step 2. Create universal binary file using lipolipo -create -output "${UNIVERSAL_OUTPUTFOLDER}/lib${PROJECT_NAME}.a" "${BUILD_DIR}/${CONFIG...
iOS開發記錄,以及Java, Servlet, JavaScript, CSS, Html, Objective-c, Swift, NodeJS, ExpressJS, React Native, Python..etc