ios - 在 xcode 中配置脚本失败,退出代码为 1

标签 ios xcode graphviz configure

我将此脚本作为 Xcode 运行脚本运行以构建 graphviz:

if [ ! "${BUILT_PRODUCTS_DIR}/graphviz/Makefile" -nt "${SRCROOT}/graphviz/configure" ]
then
  GVROOT="${SRCROOT}/graphviz"

  # figure out optimization
  OPT="${GCC_OPTIMIZATION_LEVEL}"
  if [ -z "${OPT}" ]
    then
    OPT="s"
  fi

  FLAGS="-fexceptions -gdwarf-2 -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} -mthumb -O${OPT}"

  # figure out architecture
  for ARCH in ${ARCHS}
  do
    FLAGS="${FLAGS} -arch ${ARCH}"
  done

  # figure out preprocessor defines
  for DEFINITION in ${GCC_PREPROCESSOR_DEFINITIONS}
  do
    FLAGS="${FLAGS} -D${DEFINITION}"
  done

  mkdir -p ${BUILT_PRODUCTS_DIR}/graphviz
  cd ${BUILT_PRODUCTSx_DIR}/graphviz

  ${GVROOT}/configure \
    --build=${NATIVE_ARCH_ACTUAL}-apple-darwin11 \
    --host=${NATIVE_ARCH}-apple-darwin11 \
    --disable-dependency-tracking \
    --enable-shared=no \
    --enable-static=yes \
    --enable-ltdl=no \
    --enable-swig=no \
    --enable-tcl=no \
    --srcdir=${GVROOT} \
    --with-codegens=no \
    --with-graph=yes \
    --with-expat=no \
    --with-fontconfig=no \
    --with-freetype2=no \
    --with-ipsepcola=yes \
    --with-libgd=no \
    --with-quartz=yes \
    --with-visio=yes \
    --with-x=no \
    CC="${PLATFORM_DEVELOPER_BIN_DIR}/clang" \
    CPP="${PLATFORM_DEVELOPER_BIN_DIR}/clang -E" \
    CXX="${PLATFORM_DEVELOPER_BIN_DIR}/clang++" \
    OBJC="${PLATFORM_DEVELOPER_BIN_DIR}/clang" \
    LD="${PLATFORM_DEVELOPER_BIN_DIR}/ld" \
    CFLAGS="${FLAGS}" \
    CXXFLAGS="${FLAGS} -fvisibility-inlines-hidden" \
    OBJCFLAGS="${FLAGS}" 2>/dev/null
fi

我得到以下编译器输出:

checking build system type... x86_64-apple-darwin11
checking host system type... i386-apple-darwin11
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i386-apple-darwin11-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /Users/michaelciccotti/Documents/Projects/Tests/LowGraphvix/graphviz/config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
Command /bin/sh failed with exit code 1

我如何找出问题所在?

最佳答案

我通过以 root 身份运行 Xcode 找出了问题所在。这给了我更详细的失败消息(不知道为什么)。我的问题是我需要“make distclean”,因为我在目录中有一个以前的构建。

关于ios - 在 xcode 中配置脚本失败,退出代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10440273/

相关文章:

android - 应用程序关闭或手机关闭时,是否可以在 Android/iOS 应用程序上接收 Pusher 消息

ios - 在 UITabBarController 内部,如何从一个 View Controller 切换到另一个 View Controller 并保留选项卡栏?

ios - 如何从 UITableViewCell 上的自定义 Collection View 单元格推送 VC?

ios - 由字符串分隔的组件崩溃应用程序 swift

python - 没有名为 _graphviz 的模块

c - 生成函数调用图 Doxygen+Graphviz

ios - 如何检查 TableView 单元格字幕是否彼此相等 iOS

ios - xcode 8模拟器先白后黑

objective-c - 如何检测 iPhone 中的抖动

graphviz - 使用 home-brew 安装后如何在 macOS 上启动 graphviz?