iOS Question Command line invocation

Stefano Di Chiano

Active Member
Licensed User
Hi everyone,
I'm using B4i v6.8 with a local builder and I'm getting the following error message:
B4i Versione: 6.80
Analisi del Codice. (0.00s)
Building folders structure. (0.03s)
Compilazione del codice. (0.04s)
Compilazione del codice di layouts (0.01s)
Compilazione del codice debugger. (1.58s)
Compilazione Progetto Xcode (0.21s)
Invio dati a compilatore remoto. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=SicilyTour CONFIGURATION_BUILD_DIR=/Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Distribution: Ergoware LTD (7TMKZQV9FR)" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=15428452-13aa-4b4b-bb24-20011ac46773 -arch arm64

Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY = iPhone Distribution: Ergoware LTD (7TMKZQV9FR)
CONFIGURATION_BUILD_DIR = /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = SicilyTour
PROVISIONING_PROFILE = 15428452-13aa-4b4b-bb24-20011ac46773

note: Using new build system
note: Planning build
note: Constructing build description
warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'B4iProject' from project 'B4iProject')
CreateBuildDirectory /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/build (in target 'B4iProject' from project 'B4iProject')
cd /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>
builtin-create-build-directory /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/build

MkDir /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload/SicilyTour.app (in target 'B4iProject' from project 'B4iProject')
cd /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>
/bin/mkdir -p /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload/SicilyTour.app
I've never seen a similar error and I don't understand it. Can anyone tell me what it is and how to solve it?

Also, is it okay to show my provisioning file code, iPhone distribution name etc. or should I hide these data?

Thanks in advance.
 

Stefano Di Chiano

Active Member
Licensed User
Here it is. Sorry for the late response but I was couldn't work on the project before.
Should I open a new thread?
 

Attachments

  • Error.txt
    33.9 KB · Views: 239
Upvote 0

aeric

Expert
Licensed User
Longtime User
The error is related to HHAnimatedGifView library.
/Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_paginaweb2.h:2:9: fatal error: 'HHAnimatedGifView.h' file not found
#import "HHAnimatedGifView.h"
^~~~~~~~~~~~~~~~~~~~~
 
Upvote 0

Stefano Di Chiano

Active Member
Licensed User
The error is related to HHAnimatedGifView library.
I already had a published version on the apple store with this library though. I don't understand why now it doesn't work.

I updated B4i and the B4iBuildServer so I added again the file .h and .a, but now I'm getting another error. I'm attaching a text file with the new error in it.

I saw this library and I will for sure use it in future projects, but since I already had a published version of the app with the HHAnimatedGifView library I wanted to keep use that one so that I wouldn't have to make a lot of changes to the project.
 

Attachments

  • Error2.txt
    3.4 KB · Views: 240
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
A library supports iPhones only, not simulators.
B4X:
The linked library 'libHHAnimatedGifView.a' is missing one or more architectures required by this target: x86_64
 
Upvote 0

Stefano Di Chiano

Active Member
Licensed User
A library supports iPhones only, not simulators.
But again, I already used it and published my app with this library. I made a few changes to the project now and I wanted to test it, but it's suddenly not working anymore.
I only changed some buttons background images so I don't think it's related to the library.
updated B4i and the B4iBuildServer so I added again the file .h and .a, but now I'm getting another error. I'm attaching a text file with the new error in it.
I think I skipped a few steps here. I already have the B4i Bridge on my iPhone, should I repeat the "B4i Build Server -> Build B4i Bridge app" process? Or should I just run the project with the local buildserver on?
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
But again, I already used it and published my app with this library.

And what ? App Store release supports armv7 and arm64 only. Another matter, if you was able to run in simulators, which need i386 / x86_64 architecture.

Again. libHHAnimatedGifView.a posted in https://www.b4x.com/android/forum/threads/gif-view.54646/#content does not support simulators. You can check this under MAC OS. Copy .a file to desktop, open new terminal window and execute lipo -info Desktop/libHHAnimatedGifView.a
The output will be Architectures in the fat file: Desktop/libHHAnimatedGifView.a are: armv7 arm64.

B4i-Bridge ... If it works, no reason to update. Anyway a compilation is a separate question.
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
In #6 you posted Error2.Txt. Take a look bold lines.

B4i Versione: 6.80
Analisi del Codice. (0.00s)
Building folders structure. (0.65s)
Compilazione del codice. (0.17s)
Compilazione del codice di layouts (0.04s)
Compilazione del codice debugger. (0.01s)
Compilazione Progetto Xcode (0.49s)
Invio dati a compilatore remoto. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=SicilyTour CONFIGURATION_BUILD_DIR=/Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload CODE_SIGNING_REQUIRED=NO -sdk iphonesimulator -arch x86_64

Build settings from command line:
ARCHS = x86_64
CODE_SIGNING_REQUIRED = NO
CONFIGURATION_BUILD_DIR = /Users/antoniodichiano/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload
PRODUCT_NAME = SicilyTour
SDKROOT = iphonesimulator13.6

note: Using new build system
note: Planning build
note: Constructing build description
warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'B4iProject' from project 'B4iProject')
error: The linked library 'libHHAnimatedGifView.a' is missing one or more architectures required by this target: x86_64. (in target 'B4iProject' from project 'B4iProject')

The log shows that you ran on simulator. Check Tools - Device IP in IDE.
Probably now you run on iPhone. But in this case a log should be another.
 
Upvote 0

Stefano Di Chiano

Active Member
Licensed User
That's probably cause I tried to run the project without selecting the IP of the device, my bad.

If I try to generate the B4i Bridge again, it still doesn't work.

I'm working on a different pc with another B4i license now, could that be a problem?
 
Upvote 0

Stefano Di Chiano

Active Member
Licensed User
So, this is what I did:
I started the buildserver on my local mac, set its Ip address in Tools -> Build Server -> Server settings. Selected my iPhone ip address in Tools -> Device IP Address, and clicked on run.
This is what I get:
B4i Version: 6.80
Parsing code. (0.00s)
Building folders structure. (0.62s)
Compiling code. (0.18s)
Compiling layouts code. (0.06s)
Compiling debugger engine code. (0.01s)
Building Xcode project (0.96s)
Sending data to remote compiler. Error
Error: security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
If you forgot a password, you can look a text file C:\Users\<your login>\AppData\Roaming\Anywhere Software\B4i\b4xV5.ini on old PC. There is a line SignKeyPassword=...
 
Upvote 0

Stefano Di Chiano

Active Member
Licensed User
I copied the old pc keys folder in mine, set the password in Tools -> Private Sign Key and clicked on set Password. Then I run the B4iBuildServer from my local mac and set its ip address in Tools -> Build Server -> Server settings.
I then clicked on Tools -> Build Server -> Build B4i Bridge App.
Error: security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
And it still gives me this error.
What did I do wrong?

EDIT: I retrieved the old pc password in the ini file as you suggested by the way, so I'm sure it's correct.
 
Last edited:
Upvote 0
Top