Skip to content

I cannot run the iOS project on the real machine. The simulator runs successfully, and I can successfully compile the IPA file. #877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mailes opened this issue Oct 28, 2022 · 5 comments

Comments

@mailes
Copy link

mailes commented Oct 28, 2022

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"
}

// -----

Simulator Screen Shot - iPhone 14 - 2022-10-28 at 09 52 24

WX20221028-095733@2x
WX20221028-095747@2x
WX20221028-095810@2x

@mailes
Copy link
Author

mailes commented Oct 28, 2022

Error screenshot

WX20221028-100924@2x

@mailes
Copy link
Author

mailes commented Oct 28, 2022

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"

@mailes
Copy link
Author

mailes commented Oct 31, 2022

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.

@mailes mailes closed this as completed Oct 31, 2022
@xionghx
Copy link

xionghx commented Feb 20, 2023

Error screenshot

WX20221028-100924@2x

I would like to ask you how to configure your certificate, looking forward to your reply!

@dfang
Copy link

dfang commented Jun 8, 2023

Error screenshot
WX20221028-100924@2x

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants