iOS Question B4i build problem

Tomas Petrus

Active Member
Licensed User
Longtime User
Hey guys and Erel,
I was outsourrcing our TaxiApp over the globe to LatinaAmerica... After few months of developement i wasnt happy with the progress...
So because of time schedule etc etc. I had to take over the project personally...

Android is OK I can bend it to our needs and it works fine

But with iOS I am stuck.....

I already solved all main problems that IDE informed me about views, functions, libraries etc.
but when I try to finally build it to be able to assert where we are ... it always crashes...

I assumed it is problem with cert, provisioning profile etc.. but nothing I tried helped....
I am mostly stucked around these errors bellow....

I tried almost everything... erase and backup all my keys/certs/profiles and put there the original ones...
rename the package etc. etc.. I already spent like 12+ hours on it...
but I couldn't find the problem.. And I am not able to build it.

Thanks for any advice to the right direction ....


B4i Version: 8.30
Parsing code. (0.18s)
Building folders structure. (0.10s)
Running custom action. (0.03s)
Running custom action. (0.03s)
Compiling code. (0.30s)
Compiling layouts code. (0.01s)
Compiling debugger engine code. (0.01s)
Building Xcode project. (0.14s)
Preparing project for builder. (0.26s)
Project size: 1.61 MB
Sending data to remote compiler. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=EDISX CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Distribution: Tomas Petrus (4P6978JYR6)" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=ba3c6d24-ec45-4de9-a0ff-90c4a9b7815a -arch arm64

User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY = iPhone Distribution: Tomas Petrus (4P6978JYR6)
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = EDISX
PROVISIONING_PROFILE = ba3c6d24-ec45-4de9-a0ff-90c4a9b7815a

note: Using codesigning identity override: iPhone Distribution: Tomas Petrus (4P6978JYR6)
Computing target dependency graph and provisioning inputs

Create build description
Build description signature: 582a345a414e538fdfa11f15ae8f3391
Build description path: /Users/administrator/Documents/UploadedProjects/<user id>/build/XCBuildData/582a345a414e538fdfa11f15ae8f3391-desc.xcbuild

warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
CreateBuildDirectory /Users/administrator/Documents/UploadedProjects/<user id>/build
cd /Users/administrator/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj
builtin-create-build-directory /Users/administrator/Documents/UploadedProjects/<user id>/build

CreateBuildDirectory /Users/administrator/Documents/UploadedProjects/<user id>/Payload
cd /Users/administrator/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj
builtin-create-build-directory /Users/administrator/Documents/UploadedProjects/<user id>/Payload

CreateBuildDirectory /Users/administrator/Documents/UploadedProjects/<user id>/build/EagerLinkingTBDs
cd /Users/administrator/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj
builtin-create-build-directory /Users/administrator/Documents/UploadedProjects/<user id>/build/EagerLinkingTBDs

MkDir /Users/administrator/Documents/UploadedProjects/<user id>/Payload/EDISX.app/Frameworks (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/<user id>/Payload/EDISX.app/Frameworks

MkDir /Users/administrator/Documents/UploadedProjects/<user id>/Payload/EDISX.app (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/<user id>/Payload/EDISX.app

ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/ba3c6d24-ec45-4de9-a0ff-90c4a9b7815a.mobileprovision /Users/administrator/Documents/UploadedProjects/<user id>/Payload/EDISX.app/embedded.mobileprovision (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>
builtin-productPackagingUtility /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/ba3c6d24-ec45-4de9-a0ff-90c4a9b7815a.mobileprovision -o /Users/administrator/Documents/UploadedProjects/<user id>/Payload/EDISX.app/embedded.mobileprovision

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/Entitlements.plist (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>
write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/Entitlements.plist

ProcessProductPackaging /Users/administrator/Documents/UploadedProjects/<user id>/B4i.entitlements /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/EDISX.app.xcent (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>

Entitlements:

{
"application-identifier" = "4P6978JYR6.com.edisx.taxi.cz";
"com.apple.developer.team-identifier" = 4P6978JYR6;
"get-task-allow" = 0;
}

builtin-productPackagingUtility /Users/administrator/Documents/UploadedProjects/<user id>/B4i.entitlements -entitlements -format xml -o /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/EDISX.app.xcent

ProcessProductPackagingDER /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/EDISX.app.xcent /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/EDISX.app.xcent.der (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>
/usr/bin/derq query -f xml -i /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/EDISX.app.xcent -o /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/EDISX.app.xcent.der --raw

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/all-product-headers.yaml (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>
write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/all-product-headers.yaml

......
 

Tomas Petrus

Active Member
Licensed User
Longtime User
I played around with it some more... and finally I think that the problem is with JHRListView Library... it is XML and JAR in aditional libraries.
And used in both Android and iOS.... And its handling all ListViews.... in B4A it works in B4i whenever I declare it as

Private xCLV As JHRListView

I got this error in build

Firstly its added as CustomListView-JhrListView in designer

Any ideas ?
 
Upvote 0

Tomas Petrus

Active Member
Licensed User
Longtime User
So I tried to run the listView in separate project to isolate the problem

I have new Default project
adding library

error when building
administrator/Documents/UploadedProjects/<user id>/Payload/B4i\ Example.app/B4i\ Example
ld: library not found for -ljavaobject
clang: error: linker command failed with exit code 1 (use -v to see invocation)

In the XML I found out that it hase dependencies
<dependsOn>javaobject</dependsOn>
<dependsOn>stringutils</dependsOn>
<dependsOn>xui</dependsOn>

iStringUtils checked
iXUI checked

Downloaded JavaObject 2.05
build error
In file included from /Users/administrator/Documents/UploadedProjects/<user id>/B4iProject/b4i_main.m:2:
/Users/administrator/Documents/UploadedProjects/<user id>/B4iProject/b4i_main.h:5:9: fatal error: 'JavaObject.h' file not found
#import "JavaObject.h"
^~~~~~~~~~~~~~
1 error generated.
 
Upvote 0
Top