2
我試圖設置我的cocoapod項目在推送後運行它在Travis-CI上的測試。我使用xctool 0.2.4來運行測試,並且在本地執行。但只要它在Travis-CI上運行,編譯構建步驟就會因爲各種原因而失敗,這在我看來並不能在本地重現。Swift測試通過本地,但構建失敗Travis-CI
xctool test -project test/MEViewExtensions.xcodeproj -scheme MEViewExtensions -sdk iphonesimulator
這裏有兩個失敗這在我的機器上正常工作:
https://travis-ci.org/materik/meviewextensions/builds/68458750
Basic Block in function '_TFE16MEViewExtensionsCSo8UIScreeng5widthV12CoreGraphics7CGFloat' does not have terminator! label %entry2 LLVM ERROR: Broken function found, compilation aborted!
https://travis-ci.org/materik/meviewextensions/builds/68465719
/Users/travis/build/materik/meviewextensions/test/MEViewExtensionsTests/UIViewTests.swift:22:33: error: type '@autoclosure() -> CGFloat' does not conform to protocol 'FloatLiteralConvertible' XCTAssertEqual(view2.x, 10.0)
我至少想在我的機器上得到相同的錯誤,以便能夠進行調試。有任何想法嗎?