Skip to content

Commit

Permalink
[iOS CI] Add clean to xcodebuild (#971)
Browse files Browse the repository at this point in the history
* add clean command

* replace xcpretty with fastlane scan

* Fix iOS build
  • Loading branch information
hewigovens authored May 29, 2020
1 parent 6a4a1bf commit abe125b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ include/TrustWalletCore/TW*Proto.h
# Code coverage files
coverage.info
coverage/
swift/test_output/

# Sourcetrail
*.srctrldb
Expand Down
2 changes: 1 addition & 1 deletion src/Bitcoin/TransactionSigner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Result<Transaction> TransactionSigner<Transaction, TransactionBuilder>::sign() {
tx.outputs = transaction.outputs;
// save estimated size
if ((input.byte_fee()) > 0 && (plan.fee > 0)) {
tx.previousEstimatedVirtualSize = plan.fee / input.byte_fee();
tx.previousEstimatedVirtualSize = static_cast<int>(plan.fee / input.byte_fee());
}

return Result<Transaction>::success(std::move(tx));
Expand Down
2 changes: 1 addition & 1 deletion tools/ios-test
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ set -e
pushd swift
xcodegen
pod install
xcrun xcodebuild -workspace TrustWalletCore.xcworkspace -scheme TrustWalletCore -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' test | xcpretty
fastlane scan --workspace TrustWalletCore.xcworkspace --scheme TrustWalletCore --sdk iphonesimulator --device='iPhone 11' --clean
popd

0 comments on commit abe125b

Please sign in to comment.