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...

Sandman

Expert
Licensed User
Longtime User
Always search for "error" in the word salad that comes from Apple's compiler. In this case I could find this:

"error: "B4iProject" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. (in target 'B4iProject' from project 'B4iProject')"

So it seems that you don't have a provisioning profile available.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
What happens if you change the user id under Tools - Build Server - Settings?

thanks erel for your reply, i changed the user but got the same error:

B4i Version: 8.51
Parsing code. (0.21s)
Building folders structure. (0.10s)
Running custom action. (0.04s)
Compiling code. (0.22s)
Compiling layouts code. (0.05s)
Building Xcode project. (0.45s)
Preparing project for builder. (5.19s)
Project size: 12.51 MB
Sending data to remote compiler. Error
Error: security: SecKeychainDelete: The specified keychain could not be found.

Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=result CONFIGURATION_BUILD_DIR=/Users/<user id>tetruashvili/Downloads/macserver85/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Developer: <user id> 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: <user id> TETRUASHVILI (6Y23UV77K8)
CONFIGURATION_BUILD_DIR = /Users/<user id>tetruashvili/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: <user id> 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/<user id>tetruashvili/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: 5f763a4819b0fa8760ed9197f6c9d6e9
Build description path: /Users/<user id>tetruashvili/Downloads/macserver85/UploadedProjects/<user id>/build/XCBuildData/5f763a4819b0fa8760ed9197f6c9d6e9.xcbuilddata
/Users/<user id>tetruashvili/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 **
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
The thing is that xcode is updating by itself.
I need to check if i can disable it.
I will wait for the next version since i dont know if i can downgrade xcode

thanx erel
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
yes i am able to run the simulator from b4i ide.
but if i compile i still get an error. not the same error but it still gives me an error.
i will try again and upload the error i get when compile to simulator
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
so this is the error i get if i compile to simulator:

(error file included because it is too long)

i also encounter a weird behavior.
if i start my mac mini and opem termial and load the b4i server i get error that could not get xcode version. then i start xcode and i am able to run the b4i server again.
in the past i did not need to open xcode when i wanted to run b4iserver.
maybe i should reinstall xcode?
 

Attachments

  • error1.txt
    251.9 KB · Views: 25
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Search for "error:". The error is:

Build input files cannot be found: '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/nanopb.framework/nanopb', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/FirebaseMessaging.framework/FirebaseMessaging', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/GoogleUtilities.framework/GoogleUtilities', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/PromisesObjC.framework/PromisesObjC', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/GoogleAppMeasurement.framework/GoogleAppMeasurement', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/GoogleDataTransport.framework/GoogleDataTransport', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/FirebaseInstallations.framework/FirebaseInstallations', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/GoogleAppMeasurementIdentitySupport.framework/GoogleAppMeasurementIdentitySupport', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/FirebaseCore.framework/FirebaseCore', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics', '/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/../../Libs/FirebaseAnalytics.framework/FirebaseAnalytics'. Did you forget to declare these files as outputs of any script phases or custom build rules which produce them? (in target 'B4iProject' from project 'B4iProject')

It looks like you are missing firebase libraries: https://www.b4x.com/android/forum/threads/firebase-v3-00-iadmob-v4-00-facebook-9-3.144798/#content
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
hi erel, i tried what you said but it did not help.
besides that i have already compiled succesfully apps that are using admob without issues.
but anyway i downloaded again the zip and tried to run and still on the simulator i am getting a very big crash report. similar to the one above. and if i try on my iphone i am getting this crash report

B4i Version: 8.51
Parsing code. (0.21s)
Building folders structure. (0.04s)
Running custom action. (0.03s)
Compiling code. (0.35s)
Compiling layouts code. (0.03s)
Compiling debugger engine code. (0.02s)
Building Xcode project. (0.21s)
Swift libraries found
Preparing project for builder. (0.18s)
Project size: 0.76 MB
Sending data to remote compiler. Error
Out: Command line invocation:
/Users/ilantetruashvili/Downloads/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=271a446d-68ac-49a5-9eec-60a763d3f30a -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 = 271a446d-68ac-49a5-9eec-60a763d3f30a

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 /Users/ilantetruashvili/Downloads/Xcode.app/Contents/Developer/usr/bin/ibtool --version --output-format xml1

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

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

ExecuteExternalTool /Users/ilantetruashvili/Downloads/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/Images.xcassets

ExecuteExternalTool /Users/ilantetruashvili/Downloads/Xcode.app/Contents/Developer/usr/bin/actool --version --output-format xml1

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

ExecuteExternalTool /Users/ilantetruashvili/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details

Build description signature: d035a27ce689003626b18b6cb74c911d
Build description path: /Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/build/XCBuildData/d035a27ce689003626b18b6cb74c911d.xcbuilddata
/Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/B4iProject.xcodeproj: error: Bundle identifier is missing. B4iProject doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'B4iProject' from project 'B4iProject')

Error: ** BUILD FAILED **
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
This seems to be relevant.

error: Bundle identifier is missing. B4iProject doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'B4iProject' from project 'B4iProject')

 
Upvote 0

ilan

Expert
Licensed User
Longtime User
This seems to be relevant.



the thing is that using the hosted builder everything works fine without changing anything
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Are you able to build other projects with your local Mac?
no, not even the default b4i app. i always get this:

B4i Version: 8.51
Parsing code. (0.00s)
Building folders structure. (0.01s)
Compiling code. (0.00s)
Compiling layouts code. (0.00s)
Compiling debugger engine code. (0.00s)
Building Xcode project. (0.34s)
Preparing project for builder. (0.04s)
Project size: 0.16 MB
Sending data to remote compiler. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release "PRODUCT_NAME=B4i Example" 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=92094109-02c9-4ec0-be53-54c9c273650b -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 = B4i Example
PROVISIONING_PROFILE = 92094109-02c9-4ec0-be53-54c9c273650b

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

Build description signature: e0c7be11dd20d53c69df8a28d62fe021
Build description path: /Users/ilantetruashvili/Downloads/macserver85/UploadedProjects/<user id>/build/XCBuildData/e0c7be11dd20d53c69df8a28d62fe021.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 **

can't understand why i am not able to run anything anymore.
i downloaded the local server zip again and put it on my local mac but i dont understand why i get this error.

 
Upvote 0
Top