我有一个问题正在导致我死亡。这里是:我有和xCode应用程序项目,当我试图在xCode UI中做所有事情时,它会变得完美。我的意思是构建,运行,测试或其他所有不同的目标,我有(3),2和应用程序的测试。与jenkins一起使用的xcodebuild测试命令不起作用
当我试图在Jenkins中安装一个连续集成到我的系统时,问题出现了。我需要在shell中执行一些命令。命令像这样的:
xcodebuild -project MYPROJECT -sdk iphonesimulator -scheme TESTS_SCHEME TEST_AFTER_BUILD=YES
我也有这等一个,到底它做同样的尝试:
xcodebuild -project MY_PROJECT -target TEST_TARGET -sdk iphonesimulator -configuration "Debug"
然后就是出现问题的时候卡梅斯出来,终端说以下内容:
....PrecompiledHeaders/MYLIBRARY-Prefix-hhjuztynfruquodlgqxroyfibfkh/MYLIBRARY-Prefix.pch.d
clang: error: invalid architecture 'arm' for deployment target '-mios-simulator-version-min=4.3'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
** BUILD FAILED **
The following build commands failed:
ProcessPCH /Users/nicoyuste/Library/Developer/Xcode/DerivedData/MY_APP-bxpgsdbefuawmiexyikbtvsatlsf/Build/Intermediates/PrecompiledHeaders/MYLIBRARY-Prefix-hhjuztynfruquodlgqxroyfibfkh/MYLIBRARY-Prefix.pch.pth MYLIBRARY-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
我一直在寻找互联网(几乎在这里),但是我发现有同样的问题的一切都没有为我工作。 xCode版本是4.5,如果你这样做xcodebuild -version
是我得到的,所以没关系。
我也试图改变头文件和一切我所发现身边,但没有解决我的问题......
任何建议...
感谢上帝的链接!我在xcodebuild和xcode插件的结合中遇到了很多问题。尽管我需要编写自己的构建脚本,但这样做更好。 – Heckscheibe