iOS Question Local Builder Error

ilan

Expert
Licensed User
Longtime User
hi

i am trying again to install an app after making minor updates using the local builder but i am getting an error

it worked 1 month ago

B4i Version: 8.51
Parsing code. (0.23s)
Building folders structure. (0.05s)
Running custom action. (0.03s)
Compiling code. (0.23s)
Compiling layouts code. (0.03s)
Building Xcode project. (0.28s)
Swift libraries found
Preparing project for builder. (4.91s)
Project size: 12.19 MB
Sending data to remote compiler. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=result CONFIGURATION_BUILD_DIR=/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Developer: ilan TETRUASHVILI (6Y23UV77K8)" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=6e6225dc-8510-42e3-9866-17050bd82c4c -arch arm64

User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY = iPhone Developer: ilan TETRUASHVILI (6Y23UV77K8)
CONFIGURATION_BUILD_DIR = /Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = result
PROVISIONING_PROFILE = 6e6225dc-8510-42e3-9866-17050bd82c4c

note: Using codesigning identity override: iPhone Developer: ilan TETRUASHVILI (6Y23UV77K8)
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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk -x c -c /dev/null

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/iPhoneOS18.0.sdk -x objective-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/ilantetruashvili/Downloads/macserver85/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/ld -version_details

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/iPhoneOS18.0.sdk -x c -c /dev/null

Build description signature: b3720342f28b79aee5c65b411ab0ee72
Build description path: /Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/build/XCBuildData/b3720342f28b79aee5c65b411ab0ee72.xcbuilddata
/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/B4iProject.xcodeproj: error: "B4iProject" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. (in target 'B4iProject' from project 'B4iProject')

Error: ** BUILD FAILED **


what is the reason for the error? any clue?

thanx
 
Solution
My best guess (and it absolutely is a guess) is that you should download a fresh bx4buildserver and start over. If you get the same error - make sure to not sudo - you probably need to remove some keystore somewhere. But, like I wrote, it's just a guess. I do know for sure though that sudo isn't needed.
I did that already, and I also remember that Erel sometime suggest to use sudo if something is not working well.
but maybe I am wrong.

so after investigations I was able to run it. when I made the os update I was asked if I want to use FileVault. this feature will encrypt all data on your ssd. this is why (my guess) the b4i builder could not run without sudo and also with sudo it did not work. disable this feature and restart...

ilan

Expert
Licensed User
Longtime User
now I have a new issue. the builder is not getting the right ip address:

Screenshot 2024-11-01 at 12.07.30.jpg



I am on Sequoia 15.1


Screenshot 2024-11-01 at 12.16.01.png
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
I don't do sudo I get this:

Last login: Fri Nov 1 13:05:18 on console


ilantetruashvili@Ilans-Mac-mini-M2 ~ % cd /Users/ilantetruashvili/Downloads/macserver85


ilantetruashvili@Ilans-Mac-mini-M2 macserver85 % java -jar B4iBuildServer.jar


Build server version: 8.50


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


2024-11-01 13:05:37.183:INFO::main: Logging initialized @131ms to org.eclipse.jetty.util.log.StdErrLog


Loading default configuration file.


AppPath=/Users/ilantetruashvili/Downloads/macserver85


Mac version: 15.1


Xcode path: /Applications/Xcode.app/Contents/Developer


Xcode version: 16.1


Creating key for: 10.0.0.17


success: true, 1


out: keytool error: java.lang.Exception: Key pair not generated, alias <jetty> already exists





ilantetruashvili@Ilans-Mac-mini-M2 macserver85 %
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
There's something weird there. The instructions doesn't mention sudo, and I run the server just fine without it. If you need to use sudo to run it, I imagine there's something strange going on for you. When you run things with sudo, you don't get the same environment variables and whatnot, so that could perhaps be why you're having issues with the builder.

My best guess (and it absolutely is a guess) is that you should download a fresh bx4buildserver and start over. If you get the same error - make sure to not sudo - you probably need to remove some keystore somewhere. But, like I wrote, it's just a guess. I do know for sure though that sudo isn't needed.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
My best guess (and it absolutely is a guess) is that you should download a fresh bx4buildserver and start over. If you get the same error - make sure to not sudo - you probably need to remove some keystore somewhere. But, like I wrote, it's just a guess. I do know for sure though that sudo isn't needed.
I did that already, and I also remember that Erel sometime suggest to use sudo if something is not working well.
but maybe I am wrong.

so after investigations I was able to run it. when I made the os update I was asked if I want to use FileVault. this feature will encrypt all data on your ssd. this is why (my guess) the b4i builder could not run without sudo and also with sudo it did not work. disable this feature and restart my Mac solved the issue.

so, for anyone with a similar issue make sure FILEVAULT is NOT enabled!!


Screenshot 2024-11-01 at 15.39.12.png
 
Upvote 1
Solution
Top