Bitrise Build Issue Report template
Description of the issue
Hello, I got the following error on xcode-test:
▸ Linking VirtaTests
❌ ld: framework not found Pods_defaults_VirtaTests
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
My pod file:
project 'Virta.xcodeproj'
platform :ios, '9.0'
use_frameworks!
abstract_target 'defaults' do
pod '....', '1.0'
.....more pod
target 'Virta' do
target 'VirtaTests' do
inherit! :search_paths
end
end
target 'Target2'
target 'Target3'
end
The project build / test success on local Mac, also works with local cli version of bitrise. I tried with clean git repo pull.
Environment:
Where did the issue happen?
On bitrise.io, stack Xcode 9.4.x, on macOS 10.13 (High Sierra)
Which build Step causes the issue and which version of the step?
xcode-test version: 1.18.16
Reproducibility
- Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
-
Does a rebuild without caches help? (You can remove the
Cache:Pull
andCache:Push
steps temporarily to not to use the cache, or you can delete all the caches on theSettings
tab of the app. : NO - Does the issue happen sporadically, or every time? : Everytime
- Does upgrading the build Step to the latest version help? : NO
- When did the issue start? : 25/08/2018
Local reproduction
Using local cli, the work-flow works as expected, with produce a html result file with some of the test fail and some pass.
Local reproduction: Linux / Android (docker based) stack builds
Build log
Here is the log:
https://app.bitrise.io/build/788221c7a00feaa4
In the raw log, last few lines:
Ld /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Virta.app/PlugIns/VirtaTests.xctest/VirtaTests normal x86_64
cd /Users/vagrant/git/Virta
export IPHONEOS_DEPLOYMENT_TARGET=10.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/vagrant/.bitrise/tools:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/Users/vagrant/go/bin:/Users/vagrant/bitrise/tools/cmd-bridge/bin/osx"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk -L/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/1PasswordExtension -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Alamofire -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/AlamofireImage -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Charts -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Cluster -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Differentiator -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/FirebaseCore -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Hero -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/KeychainAccess -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Localize-Swift -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Moya -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Pastel -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/R.swift.Library -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Realm -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/RealmSwift -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Result -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/RxCocoa -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/RxDataSources -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/RxGesture -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/RxSwift -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/RxSwiftExt -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/SkeletonView -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/SnapKit -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/SwiftDate -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/SwiftMessages -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/SwiftNotificationCenter -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Swinject -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/UICircularProgressRing -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/lottie-ios -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/nanopb -F/Users/vagrant/git/Virta/Pods/Crashlytics/iOS -F/Users/vagrant/git/Virta/Pods/Fabric/iOS -F/Users/vagrant/git/Virta/Pods/FirebaseAnalytics/Frameworks -F/Users/vagrant/git/Virta/Pods/FirebaseInstanceID/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -filelist /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Intermediates.noindex/Virta.build/Debug-iphonesimulator/VirtaTests.build/Objects-normal/x86_64/VirtaTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker /Users/vagrant/git/Virta/Pods/Firebase/CoreOnly/Sources -mios-simulator-version-min=10.0 -dead_strip -bundle_loader /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Virta.app/Virta -Xlinker -object_path_lto -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Intermediates.noindex/Virta.build/Debug-iphonesimulator/VirtaTests.build/Objects-normal/x86_64/VirtaTests_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Intermediates.noindex/Virta.build/Debug-iphonesimulator/VirtaTests.build/Objects-normal/x86_64/VirtaTests.swiftmodule -lc++ -lsqlite3 -lz -framework Alamofire -framework AlamofireImage -framework Charts -framework Cluster -framework Differentiator -framework FirebaseCore -framework Foundation -framework GoogleToolboxForMac -framework Hero -framework KeychainAccess -framework Localize_Swift -framework Lottie -framework Moya -framework OnePasswordExtension -framework Pastel -framework Realm -framework RealmSwift -framework Result -framework Rswift -framework RxCocoa -framework RxDataSources -framework RxGesture -framework RxSwift -framework RxSwiftExt -framework Security -framework SkeletonView -framework SnapKit -framework StoreKit -framework SwiftDate -framework SwiftMessages -framework SwiftNotificationCenter -framework Swinject -framework SystemConfiguration -framework UICircularProgressRing -framework UIKit -framework nanopb -framework XCTest -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Intermediates.noindex/Virta.build/Debug-iphonesimulator/VirtaTests.build/VirtaTests.xctest-Simulated.xcent -framework Pods_VirtaTests -framework Pods_defaults_VirtaTests -Xlinker -dependency_info -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Intermediates.noindex/Virta.build/Debug-iphonesimulator/VirtaTests.build/Objects-normal/x86_64/VirtaTests_dependency_info.dat -o /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Virta.app/PlugIns/VirtaTests.xctest/VirtaTests
ld: framework not found Pods_defaults_VirtaTests
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ditto /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/VirtaTests.swiftmodule/x86_64.swiftdoc /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Intermediates.noindex/Virta.build/Debug-iphonesimulator/VirtaTests.build/Objects-normal/x86_64/VirtaTests.swiftdoc
cd /Users/vagrant/git/Virta
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/vagrant/.bitrise/tools:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/Users/vagrant/go/bin:/Users/vagrant/bitrise/tools/cmd-bridge/bin/osx"
/usr/bin/ditto -rsrc /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Intermediates.noindex/Virta.build/Debug-iphonesimulator/VirtaTests.build/Objects-normal/x86_64/VirtaTests.swiftdoc /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/VirtaTests.swiftmodule/x86_64.swiftdoc
2018-08-29 08:02:28.563 xcodebuild[2335:13408] Error Domain=IDETestOperationsObserverErrorDomain Code=14 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/com.apple.dt.XCTest/IDETestRunSession-AE906C2F-F848-4D96-A1C2-5BD7F0D3A2DD/VirtaUITests-E677C260-183A-466A-9184-65461DBEB44A/Session-VirtaUITests-2018-08-29_080159-6YmvAE.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/com.apple.dt.XCTest/IDETestRunSession-AE906C2F-F848-4D96-A1C2-5BD7F0D3A2DD/VirtaUITests-E677C260-183A-466A-9184-65461DBEB44A/Session-VirtaUITests-2018-08-29_080159-6YmvAE.log}
2018-08-29 08:02:28.563 xcodebuild[2335:13408] Error Domain=IDETestOperationsObserverErrorDomain Code=14 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/com.apple.dt.XCTest/IDETestRunSession-AE906C2F-F848-4D96-A1C2-5BD7F0D3A2DD/VirtaTests-FEF84B01-2D24-406A-BE34-F3FF885C7E72/Session-VirtaTests-2018-08-29_080159-1VK2vY.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/com.apple.dt.XCTest/IDETestRunSession-AE906C2F-F848-4D96-A1C2-5BD7F0D3A2DD/VirtaTests-FEF84B01-2D24-406A-BE34-F3FF885C7E72/Session-VirtaTests-2018-08-29_080159-1VK2vY.log}
Testing failed:
Linker command failed with exit code 1 (use -v to see invocation)
** TEST FAILED **
The following build commands failed:
Ld /Users/vagrant/Library/Developer/Xcode/DerivedData/Virta-aqweknbqphbtymayapmdtiwkbafv/Build/Products/Debug-iphonesimulator/Virta.app/PlugIns/VirtaTests.xctest/VirtaTests normal x86_64
(1 failure)