【问题标题】:xcodebuild not building library for simulatorxcodebuild 没有为模拟器构建库
【发布时间】:2014-11-06 13:24:49
【问题描述】:

我正在运行一个脚本来为设备和模拟器构建一个静态库,以便稍后使用 lipo 合并。

要构建两个版本,我使用以下命令:

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}"

问题是没有创建 iphonesimulator 版本。在 Products 文件夹中只存在一个 Debug-iphoneos 版本。

【问题讨论】:

    标签: iphone xcode sdk ios-simulator


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-15
      • 1970-01-01
      • 2015-11-28
      • 2012-12-09
      • 2016-03-04
      • 2021-03-14
      • 2012-05-08
      • 1970-01-01
      相关资源
      最近更新 更多