iOS Question [SOLVED] Hosted Builder failing after regenerating certificates.

pixet

Member
Licensed User
Longtime User
Using Hosted Builder:

I had to create new certificates and provision file to add some devices that were not there before.
After the procedure of generating certificates and provision file, I created B4i-Bridge and I was able to install it on the devices.
I compile a simple app using Hosted Builder, the debug version is installed on the device and opens and works, I move on to generate the release version but the compiler returns errors and the compilation process fails:
(this test was done on iPhone 16 Pro (ver iOS 18.3. 2 and on iPhoneX iOS 16.7. 10)

below are the messages where the compiler stops:

CompileAssetCatalog /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Table\ B4i.app /Users/administrator/Documents/UploadedProjects/<user id>/Images.xcassets (in target 'B4iProject' from project 'B4iProject')
cd /Users/administrator/Documents/UploadedProjects/<user id>
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/assetcatalog_dependencies --output-partial-info-plist /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/assetcatalog_generated_info.plist --app-icon AppIcon --enable-on-demand-resources YES --development-region English --target-device iphone --target-device ipad --minimum-deployment-target 12.0 --platform iphoneos --compile /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Table\ B4i.app /Users/administrator/Documents/UploadedProjects/<user id>/Images.xcassets


Error: ** BUILD FAILED **


The following build commands failed:
CpResource /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Table\ B4i.app/b4i_host_ip.txt /Users/administrator/Documents/UploadedProjects/<user id>/b4i_host_ip.txt (in target 'B4iProject' from project 'B4iProject')
(1 failure)
 
Last edited:

pixet

Member
Licensed User
Longtime User
Thanks @f0raster0 for the reply,
I tried to download the files and clean the IDE several times, but I always get the same result.

When I generate "app release" the compilation process fails with the message (Error: ** BUILD FAILED **)
and on the device I find a second instance of B4i-Bridge, it seems that it can't find the device address anymore
but I checked and the device remains connected (it responds from the network).

Now I tried to close the IDE completely and restart the whole process,
I open the IDE, load the file of my app to compile and compile in DEBUG mode,
but now it responds with another message:

Log messages:
B4i Versione: 8.80
Analisi del Codice.    (0.00s)
Building folders structure.    (0.01s)
Compilazione del codice.    (0.01s)
Compilazione del codice di layouts    (0.02s)
Compilazione del codice debugger.    (0.68s)
Compilazione Progetto Xcode.    (0.22s)
Preparazione del progetto per la sua costruzione.    (0.52s)
    Dimensioni del progetto: 0.32 MB
Invio dati a compilatore remoto.    Error
Out: Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild clean

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

error: Could not delete `/Users/administrator/Documents/UploadedProjects/<user id>/build` because it was not created by the build system.
    note: To mark this directory as deletable by the build system, run `xattr -w com.apple.xcode.CreatedByBuildSystem true /Users/administrator/Documents/UploadedProjects/<user id>/build` when it is created.
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
Invio dati a compilatore remoto. Error
Are you using the Hosted Builder?

And have you tried with both builders?
Build Server-> Server Setting -> Prefer Seconday

did you full reset both phone and PC, and try again?

Edit: similar issue here:
 
Upvote 0

pixet

Member
Licensed User
Longtime User
If I select only the secondary server when I confirm it answers me
that it does not find the ip "192.168.0.100"
if I select both the primary and the secondary it does not give me error messages when confirming the selection but compiling the "release" version in the logs I see these error messages:

Log errors messages:
CompileAssetCatalog /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Table\ B4i.app /Users/administrator/Documents/UploadedProjects/<user id>/Images.xcassets (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    /Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/assetcatalog_dependencies --output-partial-info-plist /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/assetcatalog_generated_info.plist --app-icon AppIcon --enable-on-demand-resources YES --development-region English --target-device iphone --target-device ipad --minimum-deployment-target 12.0 --platform iphoneos --compile /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Table\ B4i.app /Users/administrator/Documents/UploadedProjects/<user id>/Images.xcassets


Error: ** BUILD FAILED **


The following build commands failed:
    CpResource /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Table\ B4i.app/b4i_host_ip.txt /Users/administrator/Documents/UploadedProjects/<user id>/b4i_host_ip.txt (in target 'B4iProject' from project 'B4iProject')
(1 failure)
 
Upvote 0

pixet

Member
Licensed User
Longtime User
I can reach the device from the Windows PC without any problems and it responds to the ping, and it is the same PC that I use with B4A and B4A-Bridge without any problems.
How could I solve this problem?

If from "Build Server Settings" I select only the Secondary server it tells me that it does not find the IP "192.168.0.100"
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
Screenshot of the error when I select only secondary server:

View attachment 163047
It is incorrect! I think you're mixing up some things.

When you start the bridge, you should see the correct IP (you could need to write it manualy: -> New IP), your PC and phone must be connected to the same Wi-Fi. That is the IP to use, not 100.168.0.100
Check mine:

1743355903368.png
 
Upvote 0

pixet

Member
Licensed User
Longtime User
Unfortunately, as I said in previous posts, the B4i-Bridge installs the app compiled in DEBUG mode but not in RELEASE mode.
Obviously, in order to communicate with the B4i-Bridge, the device is on the same network and I select the IP address of the device
from the "Device IP address" list.

But I always get the same result.

In the "Build Server" I have currently selected "Use Hosted Builder" and "Prefer Secondary" automatically suggests "192.168. 0.100"
if I change the value entered in the "server IP" field by entering the IP of the device, it always responds "Ping failed"

I tried to recreate the development environment on another PC and it is the same.

Now I will try to reset everything on the "developer.apple.com" site, both the certificates and the list of devices, and I will try to redo everything.
I will leave a few hours so that the devices are updated with notifications.
 
Upvote 0
Top