I cannot run the iOS project on the real machine. The simulator runs successfully, and I can successfully compile the IPA file.
According to the guidance file, I successfully compiled the IPA file and generated the Xcode project file that can run normally on the simulator. But when I tried to run the real machine, I checked Automatically manage signing and configured Capability, but still prompted me with the following error:
Unable to install "Telegram" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620395 User Info: { DVTErrorCreationDateKey = "2022-10-28 01:50:37 +0000"; IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; } A valid provisioning profile for this executable was not found. Domain: com.apple.dt.MobileDeviceErrorDomain
//----
I have configured all the signatures and certificates that can be configured, but they still cannot be compiled on the real machine. I don't know where the problem occurs, and whether there are some things I have missed. Please help me, thank you.
{ "app": "9.0.2", "bazel": "5.3.1", "xcode": "14.0.1" }
// -----


Error screenshot

I used the following command to generate the project file:
python3 build-system/Make/Make.py
--overrideXcodeVersion
--cacheDir="$HOME/telegram-bazel-cache"
--bazel="$HOME/bazel-dist/bazel"
generateProject
--configurationPath="$HOME/telegram-configuration-development/development-configuration.json"
--disableExtensions
--codesigningInformationPath="$HOME/telegram-configuration-development/fake-codesigning"
or
python3 build-system/Make/Make.py
--overrideXcodeVersion
--cacheDir="$HOME/telegram-bazel-cache"
--bazel="$HOME/bazel-dist/bazel"
generateProject
--configurationPath="$HOME/telegram-configuration-development/development-configuration.json"
--codesigningInformationPath="$HOME/telegram-configuration-development/fake-codesigning"
It's strange that I deleted the project and cloned it again. All the previous certificate files have not changed. Then I rebuilt. I succeeded. I generated the iOS project file. I succeeded. Then I ran the project directly. Without checking any certificate settings, it can run on the real machine. This project does not need to set certificates in xcode. All the project settings are set in/Users/xxx/Program iOS/Program/BUILD, the build file.
Error screenshot
I would like to ask you how to configure your certificate, looking forward to your reply!
Error screenshot
I would like to ask you how to configure your certificate, looking forward to your reply!
i also got this error: "A valid provisioning profile for this executable was not found"
did you fix it?