Tôi có thiết lập Travis CI trên GitHub. Tôi sử dụng nó để kiểm tra các cam kết của tôi cho ứng dụng iOS. Vấn đề là, tôi rất thường xuyên và ngẫu nhiên nhận được một lỗi 65. Tôi vẫn chưa tìm thấy một giải pháp.Xây dựng Travis không thành công với lỗi 65
Khi tôi khởi động lại công việc 2-3 lần sau khi nó thất bại, nó vượt qua 90% số lần.
Tôi trước đây cũng gặp sự cố với nhật ký quá chi tiết cho Travis (> 4MB) nhưng tôi đã thêm xcpretty
để khắc phục điều đó.
lỗi tôi lấy từ nhật ký:
...
Generating 'XYZ.app.dSYM'
❌ error: couldn't remove '/Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app/SomeName.storyboardc' after command failed: Directory not empty
...
Và sau đó ở phần cuối của Travis log:
Testing failed:
The file “056-Jj-FAu-view-XmS-Ro-0cO.nib” couldn’t be opened because there is no such file.
error: couldn't remove '/Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app/SomeName.storyboardc' after command failed: Directory not empty
error: lipo: can't move temporary file: /Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app.dSYM/Contents/Resources/DWARF/XYZ to file: /Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app.dSYM/Contents/Resources/DWARF/XYZ.lipo (No such file or directory)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil emitted errors but did not return a nonzero exit code to indicate failure
** TEST FAILED **
The following build commands failed:
LinkStoryboards
LinkStoryboards
(2 failures)
The command "./scripts/build.sh" exited with 65.
Tôi đang sử dụng Xcode 8
cả trong cài đặt Xcode và Travis.
Đó là vấn đề xuất hiện trên các CI khác nhau. Với tất cả các loại khác nhau của trys trên web https://discuss.circleci.com/t/xcode-exit-code-65-ui-tests/7201/13. Nó có vẻ như bằng cách nào đó bắt đầu mô phỏng trước khi lệnh xây dựng với các công cụ khởi chạy là một hack trước Xcode8. Điều đó được cho là không hoạt động nữa. Tôi chưa xem xét các lựa chọn khác nhau. – MrBr