Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode 在Travis中构建OSX gcc代码_Xcode_Macos_Travis Ci_Sqlcipher - Fatal编程技术网

Xcode 在Travis中构建OSX gcc代码

Xcode 在Travis中构建OSX gcc代码,xcode,macos,travis-ci,sqlcipher,Xcode,Macos,Travis Ci,Sqlcipher,我肯定以前有人碰到过这个,但我很难找到它。我有一个用于编译xcode项目的travis构建脚本,其中一部分需要使用使用脚本编译的sqlcipher。当它到达特拉维斯的那一部分时,我看到: checking build system type... i386-apple-darwin13.4.0 checking host system type... i386-apple-darwin13.4.0 checking for gcc... gcc checking whether the C co

我肯定以前有人碰到过这个,但我很难找到它。我有一个用于编译xcode项目的travis构建脚本,其中一部分需要使用使用脚本编译的sqlcipher。当它到达特拉维斯的那一部分时,我看到:

checking build system type... i386-apple-darwin13.4.0
checking host system type... i386-apple-darwin13.4.0
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/travis/build/project-imas/encrypted-core-data/vendor/sqlcipher':
configure: error: C compiler cannot create executables
我发现多个线程说应该已经安装了gcc-4.8,尽管尝试导出CC=gcc-4.8失败,并且使用compgen无法帮助找到应该安装的版本

我当前的.travis.yml文件如下所示:

language: objective-c

compiler:
  - gcc

script:
  - cd "exampleProjects/IncrementalStore"
  # 32-bit tests
  - xctool -sdk iphonesimulator -scheme "Incremental Store Demo" clean test -destination "name=iPhone Retina (4-inch)"
  # 64-bit tests
  - xctool -sdk iphonesimulator -scheme "Incremental Store Demo" clean test -destination "name=iPhone Retina (4-inch 64-bit)"

before_install: 
  - brew update
  - brew unlink xctool
  - brew install xctool

尝试brew安装gcc超时,似乎应该有一个更简单的解决方案。

CC=clang./configure如何?很好的建议@droppy,不幸的是,现在整个制作过程甚至连清洁步骤都失败了。在我最初尝试使用并不存在的gcc-4.8时,我已经看到了这一点。是否生成了日志文件?这可能会显示一个更具体的错误消息,说明它无法编译C程序的原因。虽然有点晚了,但完整的日志应该在这里:如果您有任何见解,我们将不胜感激,但仍然没有找到一个好的解决方案。