B4i Library [class][custom view] Color Picker

Erel

Administrator
Staff member
Licensed User
Don't use. Nicer picker in XUI Views.



Wrapper for: https://github.com/johankasperi/SwiftHSVColorPicker

It is implemented as a custom view. The native library is accessed with NativeObject.

You need to add these two lines to the main module:
B4X:
#AdditionalLib: ColorPicker.framework.swift.3
#MinVersion: 8
Note that the color picker is not resizable. The size will be set based on the custom view initial size.

If you are using a local Mac then you need to download and copy the framework to the Mac Libs folder.
Xcode 9 Swift framework is attached.
Xcode 10: www.b4x.com/b4i/files/Xcode10SwiftFrameworks.zip
 

Attachments

Last edited:

tufanv

Expert
Licensed User
I have a question. Does
ColorPicker.framework.swift.3 created by you according to b4i or you just put the framework from github and use nativeobject to use this ?
 

ilan

Expert
Licensed User
hi i am trying to use this color picker and i am getting an error:

B4i version: 3.01
Parsing code. (0.02s)
Compiling code. (0.08s)
Compiling layouts code. (0.00s)
Compiling debugger engine code. (2.07s)
Building Xcode project (0.02s)
Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = i386
CODE_SIGNING_REQUIRED = NO
CONFIGURATION_BUILD_DIR = /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload
PRODUCT_NAME = result
SDKROOT = iphonesimulator10.2

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies

Create product structure
/bin/mkdir -p /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/result.app

ProcessInfoPlistFile Payload/result.app/Info.plist B4iProject/B4iProject-Info.plist
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-infoPlistUtility /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/B4iProject/B4iProject-Info.plist -genpkginfo /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/result.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/result.app/Info.plist

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpicker.o B4iProject/b4i_colorpicker.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/ql/q5xc2pk54952j9m1d6t9hs6c0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-generated-files.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-own-target-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-all-target-headers.hmap -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-project-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/include -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpicker.d --serialize-diagnostics /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpicker.dia -c /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/B4iProject/b4i_colorpicker.m -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpicker.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_callsubutils.o B4iProject/b4i_callsubutils.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/ql/q5xc2pk54952j9m1d6t9hs6c0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-generated-files.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-own-target-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-all-target-headers.hmap -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-project-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/include -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_callsubutils.d --serialize-diagnostics /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_callsubutils.dia -c /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/B4iProject/b4i_callsubutils.m -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_callsubutils.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpickerdialog.o B4iProject/b4i_colorpickerdialog.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/ql/q5xc2pk54952j9m1d6t9hs6c0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-generated-files.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-own-target-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-all-target-headers.hmap -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-project-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/include -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpickerdialog.d --serialize-diagnostics /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpickerdialog.dia -c /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/B4iProject/b4i_colorpickerdialog.m -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_colorpickerdialog.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o B4iProject/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/ql/q5xc2pk54952j9m1d6t9hs6c0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-generated-files.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-own-target-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-all-target-headers.hmap -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-project-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/include -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.dia -c /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/B4iProject/main.m -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o B4iProject/b4i_main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/ql/q5xc2pk54952j9m1d6t9hs6c0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-generated-files.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-own-target-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-all-target-headers.hmap -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-project-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/include -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.d --serialize-diagnostics /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.dia -c /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/B4iProject/b4i_main.m -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/LS_main.o B4iProject/LS_main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/ql/q5xc2pk54952j9m1d6t9hs6c0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-generated-files.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-own-target-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-all-target-headers.hmap -iquote /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result-project-headers.hmap -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/include -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/LS_main.d --serialize-diagnostics /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/LS_main.dia -c /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/B4iProject/LS_main.m -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/LS_main.o

Ld Payload/result.app/result normal i386
cd /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -L../../Libs -F/Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload -F../../Libs -filelist /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/result.LinkFileList -mios-simulator-version-min=8.0 -Xlinker -object_path_lto -Xlinker /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/result_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/result.app.xcent -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liPhone -liHUD -framework AVFoundation -framework MessageUI -framework CoreMotion -framework ColorPicker.framework -liDebug2 -Xlinker -dependency_info -Xlinker /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/result_dependency_info.dat -o /Users/Ilan/Downloads/macserver/UploadedProjects/<user id>/Payload/result.app/result
ld: framework not found ColorPicker.framework
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
Ld Payload/result.app/result normal i386
(1 failure)
 

kstainsb

Member
Licensed User
Hello, is it possible to set the inital color of the colorpicker when it first opens? I can't work out how to do that.
 

kstainsb

Member
Licensed User
Sorry, yes I meant via code - it doesn't seem to have a settable property to set the color in code. For example when I am changing the color of something, I want to set the color to an existing color first.
 

schimanski

Well-Known Member
Licensed User
When changing the screen-orientation, the ColorPicker doesn't resize with the following code:

B4X:
Private Sub pageColorPicker_Resize(Width As Int, Height As Int)
   ColorPicker1.GetBase.SetLayoutAnimated(0, 0, 0, 0, Width, Height)
End Sub
Is there another solution?
 
Top