iOS Question Question about encryption b4i

Juan Marrero

Active Member
Licensed User
Longtime User
Is it possible to read an encrypted file created in b4j in b4i? I found and example in b4j forum of creating an encrypted file (for licensing purposes), in b4a it works flawlessly. I saw some examples in b4i forum but the encryption method seems different than the one used in b4j.
 

Juan Marrero

Active Member
Licensed User
Longtime User
mvp687en.,prusb0

this is my current password for all my encryptions, i'll be changing it after my situation is resolved, so no worries
 
Upvote 0

Juan Marrero

Active Member
Licensed User
Longtime User
This is my project. I just added a decrypt button to it and it reads correctly.
 

Attachments

  • LicenseCreatorb4j.zip
    2.7 KB · Views: 295
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I tested it on B4i with this code and it worked correctly:
B4X:
Dim c As Cipher
   Dim bc As ByteConverter
   Dim d() As Byte = c.Decrypt(bc.HexToBytes(File.ReadString(File.DirAssets, "RemSysLic.lic")), "mvp687en.,prusb0")
   Log(BytesToString(d, 0, d.Length, "UTF8"))

If you are using a local Mac builder then make sure to update both the xml file and the a file.
 
Upvote 0

Juan Marrero

Active Member
Licensed User
Longtime User
Sorry for very late response. I got married on December 20th and went to a cruise vacation and returned on December 28th.
I saw that it worked for you. I installed b4i 1.50 before making any other tests, now it errors on DBRequestManager class. :(

I installed previous b4i version.

This is the error at building:

Parsing code. 0.15
Compiling code. 0.61
Compiling layouts code. 0.29
Compiling debugger engine code. 3.70
Building Xcode project 0.06
Sending data to remote compiler. Error
B4i line: 126
Return bc.ShortsFromBytes(ReadBytesFully(In, data, data.Length))(0)
expected identifier or '('

Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/a2n739r/Payload
OTHER_CODE_SIGN_FLAGS = --keychain a2n739r
PRODUCT_NAME = RemSys
PROVISIONING_PROFILE = 2218bf1e-1afe-4a8b-b6db-703fa488cbbe

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

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build
write-file /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys.hmap
write-file /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-own-target-headers.hmap
write-file /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-all-non-framework-target-headers.hmap
write-file /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-all-target-headers.hmap
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7
write-file /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/RemSys.LinkFileList
write-file /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-generated-files.hmap
write-file /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-project-headers.hmap

Create product structure
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/a2n739r/Payload/RemSys.app

ProcessInfoPlistFile Payload/RemSys.app/Info.plist B4iProject/B4iProject-Info.plist
cd /Users/administrator/Documents/UploadedProjects/a2n739r
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-infoPlistUtility /Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/B4iProject-Info.plist -genpkginfo /Users/administrator/Documents/UploadedProjects/a2n739r/Payload/RemSys.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -o /Users/administrator/Documents/UploadedProjects/a2n739r/Payload/RemSys.app/Info.plist

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_dbrequestmanager.o B4iProject/b4i_dbrequestmanager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/administrator/Documents/UploadedProjects/a2n739r
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -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-receiver-is-weak -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/a2n739r/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_dbrequestmanager.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_dbrequestmanager.dia -c /Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m -o /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_dbrequestmanager.o
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:634:165: error: expected identifier or '('
if (true) return (NSObject*)(@([((NSNumber*)[__ref._bc ShortsFromBytes:[__ref _readbytesfully:nil :_in :_data :_data.Length]] getObjectFastN:(int) (0)]).shortValue));
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:635:2: error: expected identifier or '('
break;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:636:1: error: expected identifier or '('
case 2:
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:639:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
_data = [[B4IArray alloc]initBytes:mad:[@((int) (4))]];
^~~~~
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:639:1: warning: incompatible pointer to integer conversion initializing 'int' with an expression of type 'B4IArray *' [-Wint-conversion]
_data = [[B4IArray alloc]initBytes:mad:[@((int) (4))]];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:639:9: error: initializer element is not a compile-time constant
_data = [[B4IArray alloc]initBytes:mad:[@((int) (4))]];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:640:1: error: expected identifier or '('
[B4IRDebugUtils shared].currentLine=7929867;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:640:2: error: missing '[' at start of message send expression
[B4IRDebugUtils shared].currentLine=7929867;
^
[
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:640:44: error: expected ']'
[B4IRDebugUtils shared].currentLine=7929867;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:640:1: note: to match this '['
[B4IRDebugUtils shared].currentLine=7929867;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:642:1: error: expected identifier or '('
if (true) return (NSObject*)(@([((NSNumber*)[__ref._bc IntsFromBytes:[__ref _readbytesfully:nil :_in :_data :_data.Length]] getObjectFastN:(int) (0)]).intValue));
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:643:2: error: expected identifier or '('
break;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:644:1: error: expected identifier or '('
case 3:
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:647:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
_data = [[B4IArray alloc]initBytes:mad:[@((int) (8))]];
^~~~~
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:647:1: error: redefinition of '_data'
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:639:1: note: previous definition is here
_data = [[B4IArray alloc]initBytes:mad:[@((int) (4))]];
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:648:1: error: expected identifier or '('
[B4IRDebugUtils shared].currentLine=7929870;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:648:2: error: missing '[' at start of message send expression
[B4IRDebugUtils shared].currentLine=7929870;
^
[
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:648:44: error: expected ']'
[B4IRDebugUtils shared].currentLine=7929870;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:648:1: note: to match this '['
[B4IRDebugUtils shared].currentLine=7929870;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:650:1: error: expected identifier or '('
if (true) return (NSObject*)(@([((NSNumber*)[__ref._bc LongsFromBytes:[__ref _readbytesfully:nil :_in :_data :_data.Length]] getObjectFastN:(int) (0)]).longLongValue));
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:651:2: error: expected identifier or '('
break;
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:652:1: error: expected identifier or '('
case 4:
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:655:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
_data = [[B4IArray alloc]initBytes:mad:[@((int) (4))]];
^~~~~
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:655:1: error: redefinition of '_data'
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:639:1: note: previous definition is here
_data = [[B4IArray alloc]initBytes:mad:[@((int) (4))]];
^
/Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_dbrequestmanager.m:656:1: error: expected identifier or '('
[B4IRDebugUtils shared].currentLine=7929873;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_bcscanner.o B4iProject/b4i_bcscanner.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/administrator/Documents/UploadedProjects/a2n739r
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -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-receiver-is-weak -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/a2n739r/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_bcscanner.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_bcscanner.dia -c /Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_bcscanner.m -o /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_bcscanner.o

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.o B4iProject/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/administrator/Documents/UploadedProjects/a2n739r
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -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-receiver-is-weak -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/a2n739r/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.dia -c /Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/main.m -o /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.o

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_downloaddata.o B4iProject/b4i_downloaddata.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/administrator/Documents/UploadedProjects/a2n739r
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -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-receiver-is-weak -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/a2n739r/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_downloaddata.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_downloaddata.dia -c /Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_downloaddata.m -o /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_downloaddata.o

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_httpjob.o B4iProject/b4i_httpjob.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/administrator/Documents/UploadedProjects/a2n739r
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -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-receiver-is-weak -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/RemSys-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/a2n739r/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/a2n739r/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_httpjob.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_httpjob.dia -c /Users/administrator/Documents/UploadedProjects/a2n739r/B4iProject/b4i_httpjob.m -o /Users/administrator/Documents/UploadedProjects/a2n739r/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_httpjob.o


Error: ** BUILD FAILED **


The following build commands failed:
CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_dbrequestmanager.o B4iProject/b4i_dbrequestmanager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Juan Marrero

Active Member
Licensed User
Longtime User
i don't have release mode o_O, i'm using the mac host, i'm not using a mac.

BTW i downloaded the updated DBRequestManager and installed the 1.50 version and now it compiles.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The debug hanging error happens when you run the encryption methods on a 64 bit device from a 32 bit app. This will not happen in Release mode as both 32bit and 64 bit binaries are included. I guess that the error in Release mode is not related.

Open Tools - Build Server and change to 64 bit. Now try to debug your app.
 
Upvote 0

Juan Marrero

Active Member
Licensed User
Longtime User
Happens the same after changing to 64 bits. In release mode the app closes and in debug mode the app hangs. The only difference in our codes is that you are using file.dirassets and i am using file.dirdocuments when locating the encrypted file. Could that be it? That encrypted files must be in file.dirassets?

BTW after installing in release mode i cannot install in debug mode anymore. the B4I Bridge says "Impossible to Download App..."
 
Last edited:
Upvote 0

Juan Marrero

Active Member
Licensed User
Longtime User
I am using an iPhone 5 (not 5S).

My project is attached.

The funny thing about the error in debug mode is that I ran the app in my personal PC and there is where I'm having the issue with debug mode. I installed b4i in my work PC to test and in my work debug deploys OK. And is the same project in both sides. I think maybe is a problem with my router at home but is odd that in release mode it can install in phone. o_O
 

Attachments

  • RemSysb4i.zip
    74.6 KB · Views: 243
Upvote 0

Juan Marrero

Active Member
Licensed User
Longtime User
Confirmed. After updating iEncryption library to v1.02 my app is reading the license perfectly!!!!

You are the man Erel!!!
 
Upvote 0
Top