简体   繁体   中英

xcodebuild not building library for simulator

I'm running a script to build a static library for the device and the simulator to later be merged using lipo.

To build both versions I'm using the following commands:

xcodebuild -target ${L_NAME} -configuration ${CONFIGURATION} -sdk iphonesimulator -arch i386 BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"

xcodebuild -target ${L_NAME} ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos  BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"

The problem is that no iphonesimulator version is created. Inside the Products folder only a Debug-iphoneos version exists.

我最终发现了问题,我没有将i386作为有效架构

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM