iOS Question Error Building a B4-Bridge Application (SOLVED)

Carlos marin

Active Member
Licensed User
Longtime User
Hi all developers, I'm having a lot of trouble compiling my app in b4i. I was looking at this thread
trouble-trying-to-build-a-b4-bridge-app.142955

I could see that the problem itself is that the Xcode version is 14 and that's why it couldn't be compiled. The only suggestion I saw was to lower the Xcode version to 13.4 on my Mac
But I really wouldn't want to do that because I need to test the app on all iOS devices.

My question is,
1. Can I fix this by updating to the latest version of b4i (8.50)
2. Do I need the "Hosted Mac Builder"? (I don't have a physical iPhone, I have a Mac on which I emulate iPhones)

note: (I couldn't create the provisioning profile udid of the simulated iPhones on the Mac (it doesn't recognize them as valid udids, so I did it with a friend's iPhone (15 pro),
I don't know if this is also a problem or affects it in some way)

my xcode version: 15.4
b4i: 8.00
Mac: MacBook Pro
MacOS: 14.5

----

Thank you very much, I hope you can help me a little. This is the error:

Compile error:
B4i Versión: 8.00
Parseando código.    (0.07s)
Building folders structure.    (0.01s)
Compilando código.    (0.12s)
Compilando aplicación diseñador.    (0.03s)
Compilando proyecto Xcode.    (0.09s)
Preparando el proyecto para el constructor.    (0.05s)
    Tamaño del proyecto: 0.23 MB
Enviando datos al compilador remoto.    Error
Out: Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=B4i-Bridge CONFIGURATION_BUILD_DIR=/Users/christianfontalvo/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Distribution: Jhonatan Zapata Roldan (9883488QJR)" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=a7ca592d-bf0e-4631-b754-1988e342c348 -arch armv7 -arch arm64

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = armv7 arm64
    CODE_SIGN_IDENTITY = iPhone Distribution: Jhonatan Zapata Roldan (9883488QJR)
    CONFIGURATION_BUILD_DIR = /Users/christianfontalvo/Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain <user id>
    PRODUCT_NAME = B4i-Bridge
    PROVISIONING_PROFILE = a7ca592d-bf0e-4631-b754-1988e342c348

note: Using codesigning identity override: iPhone Distribution: Jhonatan Zapata Roldan (9883488QJR)
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (1 target)
    Target 'B4iProject' in project 'B4iProject' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -x objective-c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --version --output-format xml1

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Users/christianfontalvo/Desktop/B4iBuildServer/UploadedProjects/<user id>/Images.xcassets

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --version --output-format xml1

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details

Build description signature: e728d8a818fc1fcf9e8c72c80785636d
Build description path: /Users/christianfontalvo/Desktop/B4iBuildServer/UploadedProjects/<user id>/build/XCBuildData/e728d8a818fc1fcf9e8c72c80785636d.xcbuilddata
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'B4iProject' from project 'B4iProject')

Error: ** BUILD FAILED **
 

Carlos marin

Active Member
Licensed User
Longtime User
For those who have a more modern version of Mac, there is a problem in the compilation due to architecture compatibility. The solution is to install Rosetta.

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

There are really too many problems trying to configure the environment for iOS. :(:(:( This is too much. It took me more than 2 days to resolve error after error after error.
 
Upvote 0
Top