how to make fastlane compatible with iOS13 - ios13

I'm using fastlane to pack my app, i've write some ios 13 supported class in my app, such as UIStatusBarManager class, then it pack failed, what should i do?
i have update the fastlane to latest version, but xcode is still xcode10.
Here is the error what i got when i use fastlane to pack:
[11:04:05]: ▸ ❌ /Users/wanghq/jenkins_workspaces/workspace/mobile-ios-teacher-ipa/Teacher_iOS/Train/Record/Utils/ZFPlayer/ZFPlayerView.m:909:9: use of undeclared identifier 'UIStatusBarManager'
[11:04:05]: ▸ UIStatusBarManager *statusBarManager = [UIApplication sharedApplication].keyWindow.windowScene.statusBarManager;
[11:04:05]: ▸ ^
[11:04:05]: ▸ ❌ /Users/wanghq/jenkins_workspaces/workspace/mobile-ios-teacher-ipa/Teacher_iOS/Train/Record/Utils/ZFPlayer/ZFPlayerView.m:909:29: use of undeclared identifier 'statusBarManager'
[11:04:05]: ▸ UIStatusBarManager *statusBarManager = [UIApplication sharedApplication].keyWindow.windowScene.statusBarManager;
[11:04:05]: ▸ ^
[11:04:05]: ▸ ❌ /Users/wanghq/jenkins_workspaces/workspace/mobile-ios-teacher-ipa/Teacher_iOS/Train/Record/Utils/ZFPlayer/ZFPlayerView.m:909:92: property 'windowScene' not found on object of type 'UIWindow *'
[11:04:05]: ▸ UIStatusBarManager *statusBarManager = [UIApplication sharedApplication].keyWindow.windowScene.statusBarManager;
[11:04:05]: ▸ ^
[11:04:05]: ▸ ❌ /Users/wanghq/jenkins_workspaces/workspace/mobile-ios-teacher-ipa/Teacher_iOS/Train/Record/Utils/ZFPlayer/ZFPlayerView.m:910:14: use of undeclared identifier 'statusBarManager'
[11:04:05]: ▸ if ([statusBarManager respondsToSelector:#selector(createLocalStatusBar)]) {
[11:04:05]: ▸ ^
[11:04:05]: ▸ ** ARCHIVE FAILED **
[11:04:05]: ▸ The following build commands failed:
[11:04:05]: ▸ CompileC /Users/wanghq/Library/Developer/Xcode/DerivedData/Teacher_iOS-faqbabrkmkezsveufzeljjrkqytg/Build/Intermediates.noindex/ArchiveIntermediates/Teacher_iOS/IntermediateBuildFilesPath/Teacher_iOS.build/Debug-iphoneos/Teacher_iOS.build/Objects-normal/armv7/ZFPlayerView.o /Users/wanghq/jenkins_workspaces/workspace/mobile-ios-teacher-ipa/Teacher_iOS/Train/Record/Utils/ZFPlayer/ZFPlayerView.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[11:04:05]: ▸ (1 failure)
[11:04:05]: ▸ ❌ /Users/wanghq/jenkins_workspaces/workspace/mobile-ios-teacher-ipa/Teacher_iOS/Train/Record/Utils/ZFPlayer/ZFPlayerView.m:911:40: use of undeclared identifier 'statusBarManager'
and this the Build environment:
+---------------+-------------------------+
| Build environment |
+---------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.134.0 |
| export_method | development |
| sdk | iPhoneOS12.2.sdk |
+---------------+-------------------------+
please help me, thanks!

You'll need Xcode 11 or newer to use the iOS 13 SDK.
Fastlane can't do anything the underlying build system can't do. I presume you'd get the same error building directly in Xcode 10. Since you're invoking parts of the API like UIStatusBarManager that don't exist in the iOS 12.2 SDK, the compiler doesn't know what to do with that.
Update Xcode and target the iOS 13 (or 13.1) SDK.

If your modifications are just a preparation to XCode 11 or iOS 13,
If your modifications don't need to active at runtime by now,
If you want to continue with your XCode 10.x version by now,
then you can use "compiler conditional directives" for problematic code sections.
For instance, I have XCode 10.3 and I can compile project with below modification.

Related

AzerothCore does not support MySQL version installed (MariaDB 10.6.8 installed and running)

i've compiled the azerothcore from source on my aarch64 machine. I am running HestiaCP on it with MariaDB 10.6.8. When starting the authserver i get the message
MySQL client library: 8.0.29
MySQL server ver: 5.5.5-10.6.8-MariaDB-1:10.6.8+maria~focal
Connected to MySQL database at 127.0.0.1
AzerothCore does not support MySQL versions below 5.7 or MariaDB versions below 10.5
DatabasePool Login NOT opened. There were errors opening the MySQL connections. Check your log file for specific errors
I think there is a problem with checking the right DB version. I dont know why it starts with 5.5.5. Is it a linking problem? But i dont see any installed packages older than what is required by the server. Any guess?
CMake Output:
-- CMake version: 3.16.3
-- The CXX compiler identification is Clang 10.0.0
-- The C compiler identification is Clang 10.0.0
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Running cmake hook: AFTER_LOAD_CONF
-- No hooks registered for AFTER_LOAD_CONF
-- Enabled С++20 standard
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/clang
-- Clang: Minimum version required is 10.0.0, found 10.0.0 - ok!
-- Performing Test CLANG_HAVE_PROPER_CHARCONV
-- Performing Test CLANG_HAVE_PROPER_CHARCONV - Success
-- Clang: All warnings enabled
-- Running cmake hook: AFTER_LOAD_CMAKE_MODULES
-- No hooks registered for AFTER_LOAD_CMAKE_MODULES
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/aarch64-linux-gnu/libmariadb.so
-- Found MySQL headers: /usr/include/mariadb
-- Found MySQL executable: /usr/bin/mysql
-- Found git binary : /usr/bin/git
* AzerothCore revision : 9673da19470d 2022-07-03 19:50:39 +0000 (master branch)
* AzerothCore buildtype : RelWithDebInfo
* Install core to : /home/ubuntu/azeroth-server
* Install libraries to : /home/ubuntu/azeroth-server/lib
* Install configs to : /home/ubuntu/azeroth-server/etc
* Build applications : Yes (all)
* Build tools : No
* Build with scripts : Yes (static)
* Build with modules : Yes (static)
* Build unit tests : No (default)
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show all warnings : Yes
* Use coreside debug : No (default)
* Use unix gperftools : No (default)
* Use GIT revision hash : Yes (default)
* Enable vmap DisableMgr checks : Yes (default)
* Show source tree : No (For UNIX default)
-- Performing Test HAVE_NEON
-- Performing Test HAVE_NEON - Success
-- Found Boost: /usr/lib/aarch64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.67") found components: system filesystem program_options iostreams regex
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- Looking for MADV_FREE
-- Looking for MADV_FREE - found
-- Found OpenSSL: /usr/lib/aarch64-linux-gnu/libssl.so;/usr/lib/aarch64-linux-gnu/libcrypto.so
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - found
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.11")
-- Found Readline library: /usr/lib/aarch64-linux-gnu/libreadline.so
-- Include dir is: /usr/include
-- Running cmake hook: BEFORE_SRC_LOAD
-- No hooks registered for BEFORE_SRC_LOAD
* Apps build list (all):
|
+- apps
| +- authserver
| +- worldserver
|
-- Running cmake hook: BEFORE_GAME_LIBRARY
-- No hooks registered for BEFORE_GAME_LIBRARY
-- Running cmake hook: AFTER_GAME_LIBRARY
-- No hooks registered for AFTER_GAME_LIBRARY
-- Running cmake hook: BEFORE_SCRIPTS_LIBRARY
-- No hooks registered for BEFORE_SCRIPTS_LIBRARY
* Script configuration (static):
|
+- worldserver
| +- Commands
| +- Custom
| +- EasternKingdoms
| +- Events
| +- Kalimdor
| +- Northrend
| +- OutdoorPvP
| +- Outland
| +- Pet
| +- Spells
| +- World
|
* Modules configuration (static):
|
-- * Modules config list:
|
-- Running cmake hook: AFTER_SRC_LOAD
-- No hooks registered for AFTER_SRC_LOAD
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
TOOLS
-- Build files have been written to: /home/ubuntu/src/azerothcore/build
mysql -V / mariadb -V output:
mysql Ver 15.1 Distrib 10.6.8-MariaDB, for debian-linux-gnu (aarch64) using readline 5.2
installed packages with mysql tag:
libmysqlclient21/focal-updates,focal-security,now 8.0.29-0ubuntu0.20.04.3 arm64 [installed,automatic]
mysql-common/unknown,now 1:10.6.8+maria~focal all [installed,automatic]
php8.0-mysql/focal,now 1:8.0.20-2+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
installed packages with mariadb tag:
libdbd-mariadb-perl/focal,now 1.11-3ubuntu2 arm64 [installed,automatic]
libmariadb-dev-compat/unknown,now 1:10.6.8+maria~focal arm64 [installed]
libmariadb-dev/unknown,now 1:10.6.8+maria~focal arm64 [installed]
libmariadb3/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client-core-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client/unknown,now 1:10.6.8+maria~focal all [installed]
mariadb-common/unknown,now 1:10.6.8+maria~focal all [installed]
mariadb-server-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-server-core-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-server/unknown,now 1:10.6.8+maria~focal all [installed]

yocto inherit qmake5 don't work if install directory is not /usr/bin

I have a directory qt project with a application (customqtapp) and two libraries (libprotocustom and libcustom).
I created a simple yocto recipe inherit qmake5.
All works fine if the target install dir is /usr/bin for application and /usr/lib for libraries but don't work if
the target install directories are /usr/local/bin and /usr/local/lib
project.pro
SUBDIRS += \
libprotocustom \
libcustom \
customqtapp
...
libprotocustom.pro
target.path=/usr/local/lib
INSTALL = target
...
libcustom.pro
target.path=/usr/local/lib
INSTALL = target
...
customqtapp.pro
target.path=/usr/local/bin
INSTALL = target
...
customqtapp.bb
SUMMARY = "customqtapp"
SRC_URI = " git:///customqt.git;protocol=file;branch=master "
SRCREV = "master"
S = "${WORKDIR}/git"
inherit qmake5
The error messages was
ERROR: customqtapp-1.0.0-r0 do_package: QA Issue: customqtapp: Files/directories were installed but not shipped in any package:
/usr/local/lib/libprotocustom.so.1.0.0
/usr/local/lib/libprotocustom.so.1.0
/usr/local/lib/libprotocustom.so
/usr/local/lib/libprotocustom.so.1
/usr/local/lib/liblibcustom.so.1.0.0
/usr/local/lib/liblibcustom.so.1
/usr/local/lib/liblibcustom.so
/usr/local/lib/liblibcustom.so.1.0
/usr/local/bin/customqtapp
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
customqtapp: 11 installed and not shipped files. [installed-vs-shipped]
ERROR: customqtapp-1.0.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package.6581
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package) failed with exit code '1'
So I added the files to FILES variable in recipe
FILES_${PN} = "\
/usr/local/sbin \
/usr/local/lib/libprotocustom.so.1.0.0 \
/usr/local/lib/libprotocustom.so.1.0 \
/usr/local/lib/libprotocustom.so \
/usr/local/lib/libprotocustom.so.1 \
/usr/local/lib/liblibcustom.so.1.0.0 \
/usr/local/lib/liblibcustom.so.1 \
/usr/local/lib/liblibcustom.so \
/usr/local/lib/liblibcustom.so.1.0 \
/usr/local/bin/customqtapp \
"
But don't work
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/libprotocustom.so'
non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/liblibcustom.so' [dev-so]
WARNING: customqtapp-1.0.0-r0 do_package_qa: QA Issue: customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/libprotocustom.so.1.0.0
customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0 [libdir]
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package_qa.7056
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package_qa) failed with exit code '1'
some ideas?
Thanks in advance.

cmake error in falkon compilation in yocto-krogoth

I am trying to compile Falkon browser in yocto using qt5, aftre resloved so many errors getting error like below on cmake.
| CMake Warning at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:7 (message):
| SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined
| Call Stack (most recent call first):
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:1 (find_package)
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:459 (include)
| CMakeLists.txt:15 (include)
| CMake Warning at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:43 (message):
| Failed call: qmake-qt5 -query "QT_INSTALL_PREFIX"
| Call Stack (most recent call first):
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:463 (query_qmake)
| CMakeLists.txt:15 (include)
| CMake Error at /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/modules/ECMQueryQmake.cmake:44 (message):
| QMake call failed: No such file or directory
| Call Stack (most recent call first):
| /home/siva/yocto/mira/build/tmp/sysroots/phyboard-mira-imx6-7/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:463 (query_qmake)
| CMakeLists.txt:15 (include)
BELOW IS MY RECIPE
DESCRIPTION = "falkon browser"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM=file://LICENSE.GPLv3;md5=8f0e2cd40e05189ec81232da84bd6e1a"
inherit qmake5 cmake systemd
require recipes-qt/qt5/qt5-git.inc
SRC_URI = "git://anongit.kde.org/falkon.git"
SRCREV = "${AUTOREV}"
DEPENDS = "qtbase qtdeclarative qtwebengine"
S = "${WORKDIR}/git"
PACKAGECONFIG ?= ""
PACKAGECONFIG[desktop] = "-DDESKTOP_BUILD,,"
RDEPENDS_${PN} += " \
extra-cmake-modules \
qtvirtualkeyboard \
qtquickcontrols \
qtwebengine \
qtgraphicaleffects \
qtmultimedia \
ttf-dejavu \
"
Is there anything to add extra. I think installations variable problems?
You just open the Cmakefiles.txt in falkon source check the required qt5 version.
I think this falkon browser requires atleast qt5.9. I guess you are using lowest version. So upgtrade your qt5 version to qt5.9.
or go for low version of falkon which requires qt5.6.

Google Blockly `namespace never provided` Error with closure-compiler.jar

I asked at this issue, but I still can't solve a problem. I get error like required "Blockly" namespace never provided .
I follow Google bLockly Advanced Compilation tutorial to try. I did not create a new directory in the Blockly root directory to test, but instead used blockly and closure-library as subdirectories (submodules) in project as below :
project
├─blockly
├─closure-library
├─closure-compiler.jar
├─index.html
└─main.js
Then compile files using the commend as below :
java -jar closure-compiler.jar --js='main.js' ^
--js='./blockly/**.js' ^
--js='!./blockly/externs/**.js' ^
--js='!./blockly/msg/messages.js' ^
--js='./closure-library/closure/goog/**.js' ^
--js='./closure-library/third_party/closure/goog/**.js' ^
--generate_exports ^
--externs ./blockly/externs/svg-externs.js ^
--compilation_level ADVANCED_OPTIMIZATIONS ^
--dependency_mode=STRICT --entry_point=Main ^
--js_output_file main_compressed.js
Stack Traces
main.js:3: ERROR - required "Blockly.Msg.en" namespace never provided
goog.require('Blockly.Msg.en');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
main.js:5: ERROR - required "Blockly" namespace never provided
goog.require('Blockly');
^^^^^^^^^^^^^^^^^^^^^^^
main.js:7: ERROR - required "Blockly.Constants.Logic" namespace never provided
goog.require('Blockly.Constants.Logic');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
main.js:8: ERROR - required "Blockly.Constants.Loops" namespace never provided
goog.require('Blockly.Constants.Loops');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
main.js:9: ERROR - required "Blockly.Constants.Math" namespace never provided
goog.require('Blockly.Constants.Math');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
main.js:10: ERROR - required "Blockly.Constants.Text" namespace never provided
goog.require('Blockly.Constants.Text');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 error(s), 0 warning(s)
Operating System
OS: Windows 7
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
Closure Compiler Version: v20180204
P.S. I get same errors even I follow all step in the tutorial (same directory structure as tutorial)
Usually the 'Namespace never provided' error is caused by not passing the file that provides that namespace to the compiler. Your directory layout is perfectly fine, but for the actual command I find it's always better to specify what files you want specifically rather than using the ! operator. I see a lot of people having issues with that. I would try the following:
`java -jar closure-compiler.jar --js='main.js' \
--js='blockly/blocks/**.js' \
--js='blockly/core/**.js' \
--js='blockly/generators/**.js' \
--js='blockly/msg/js/**.js' \
--js='closure-library/closure/goog/**.js' \
--js='closure-library/third_party/closure/goog/**.js' \
--generate_exports \
--externs blockly/externs/svg-externs.js \
--compilation_level ADVANCED_OPTIMIZATIONS \
--dependency_mode=STRICT --entry_point=Main \
--output_manifest manifest.MF
--js_output_file main_compressed.js`
Note that this will allow you see what files are actually being compiled by listing them in manifest.MF.

How to configure metaspace with SBT

I'm trying to configure metaspace for SBT
export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=256M -Xms2G -Xmx2G"
but when I run sbt -v, I have the following output :
[process_args] java_version = '1.8.0_11'
# Executing command line:
java
-XX:+CMSClassUnloadingEnabled
-XX:MaxMetaspaceSize=512M
-XX:MetaspaceSize=256M
-Xms2G
-Xmx2G
-Xms1024m
-Xmx1024m
-XX:ReservedCodeCacheSize=128m
-XX:MaxMetaspaceSize=256m
-jar
/usr/local/Cellar/sbt/0.13.7/libexec/sbt-launch.jar
The problem seems that my custom value for MaxMetaspaceSize is overrided with another value, as shown in output above.
SBT version : 0.13.7
Java version : 1.8
OS : OSX
(copy-pasted from a dear coworker who found the solution)
sbt -mem 2048
=>
-Xms2048m
-Xmx2048m
-XX:ReservedCodeCacheSize=256m
-XX:MaxMetaspaceSize=512m
the default metaspace is based on the xmx value specified with the "-mem" option ;-)
When using sbt 0.13.6 or higher you can create a .sbtopts file in your project root with:
-J-XX:MaxMetaspaceSize=512M
It seems that memory options are only correctly handled when they are specified in JAVA_OPTS
setting export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=256M -Xms2G -Xmx2G"
gives
sbt -v
[process_args] java_version = '1.8.0_40'
# Executing command line:
java
-XX:+CMSClassUnloadingEnabled
-XX:MaxMetaspaceSize=512M
-XX:MetaspaceSize=256M
-Xms2G
-Xmx2G
-jar
/usr/local/Cellar/sbt/0.13.8/libexec/sbt-launch.jar
[info] Loading global plugins from /Users/ant/.sbt/0.13/plugins
[info] Set current project to ant (in build file:/Users/ant/)
>
Not sure if it's a bug or a feature
export SBT_OPTS="-XX:MaxMetaspaceSize=512m -Xms1024m -Xmx1024m"
works for me in sbt 0.13.11:
sbt -v
[process_args] java_version = '1.8.0_91'
# Executing command line:
java
-XX:MaxMetaspaceSize=512m
-Xms1024m
-Xmx1024m
-jar

Resources