Skip to content

Commit

Permalink
Use new Xcode version (10) otherwise some artifacts are malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
KhalilBellakrid committed Nov 4, 2018
1 parent 8812727 commit f3b3ece
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .circleci/build_node_module.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/usr/bin/env bash
echo "=====>Install nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.bashrc

echo "=====>Change node version"
node --version
nvm install 8.9.4
nvm use 8.9.4
node --version

echo "=====>Build node module"

Expand Down
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
ctest
build_macos_release:
macos:
xcode: "9.2.0"
xcode: "10.0.0"
working_directory: ~/lib-ledger-core
steps:
- checkout
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
. .circleci/deploy_fat_lib.sh
build_macos_debug:
macos:
xcode: "9.2.0"
xcode: "10.0.0"
working_directory: ~/lib-ledger-core
steps:
- checkout
Expand Down
2 changes: 1 addition & 1 deletion core/src/wallet/common/database/AccountDatabaseHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace ledger {
int32_t AccountDatabaseHelper::computeNextAccountIndex(soci::session &sql, const std::string &walletUid) {
//TODO: Enhance performance for huge wallets by reducing the select range.
int32_t currentIndex = 0;
rowset<int32_t> rows = (sql.prepare << "SELECT idx FROM accounts WHERE wallet_uid = :uid", use(walletUid));
rowset<int32_t> rows = (sql.prepare << "SELECT idx FROM accounts WHERE wallet_uid = :uid ORDER BY idx", use(walletUid));
for (auto& idx : rows) {
if (idx > currentIndex) {
return currentIndex;
Expand Down
2 changes: 1 addition & 1 deletion tools/build_ios/ios_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi

cp `pwd`/../lib-ledger-core/tools/build_ios/framework.plist.in `pwd`

cp `pwd`/../lib-ledger-core/tools/build_ios/install_name.sh `pwd` $ARCH
cp `pwd`/../lib-ledger-core/tools/build_ios/install_name.sh `pwd`



Expand Down
2 changes: 1 addition & 1 deletion tools/build_ios/iphone.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ endif()

set(CMAKE_OSX_SYSROOT "iphoneos" CACHE STRING "System root for iOS")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator")
#set(IOS_SDK_VERSION "12.0" CACHE STRING "Updating Xcode leads to this" FORCE)
set(IOS_SDK_VERSION "12.0" CACHE STRING "Updating Xcode leads to this" FORCE)
# find 'iphoneos' and 'iphonesimulator' roots and version
find_program(XCODE_SELECT_EXECUTABLE xcode-select)
if(NOT XCODE_SELECT_EXECUTABLE)
Expand Down

0 comments on commit f3b3ece

Please sign in to comment.