Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

The problem with the assembly is only for the simulator. (Assembly with --disableProvisioningProfiles)

Open AlexeiMatsko opened this issue 4 weeks ago • 0 comments

I am reporting an issue in existing functionality that does not work as intended I've searched for existing GitHub issues

Description

I try to generate project for simulator only.

I used from docs command to generate Project and it works: python3 build-system/Make/Make.py
--cacheDir="$HOME/telegram-bazel-cache"
generateProject
--configurationPath=build-system/template_minimal_development_configuration.json
--xcodeManagedCodesigning

But when I try to generate Project only for simulator I always get response like this: python3 build-system/Make/Make.py
--cacheDir="$HOME/telegram-bazel-cache" \
--verbose \
generateProject
--configurationPath=build-system/simulator_configuration.json
--codesigningInformationPath="$HOME/telegram-fake-codesigning"
--disableProvisioningProfiles Namespace(verbose=True, bazel=None, bazelUserRoot=None, overrideBazelVersion=False, overrideXcodeVersion=False, bazelArguments=None, cacheHost=None, cacheDir='/Users/alexeimatsko/telegram-bazel-cache', commandName='generateProject', buildNumber=10000, configurationPath='build-system/simulator_configuration.json', gitCodesigningRepository=None, codesigningInformationPath='/Users/alexeimatsko/telegram-fake-codesigning', xcodeManagedCodesigning=False, gitCodesigningType=None, gitCodesigningUseCurrent=False, disableExtensions=False, continueOnError=False, disableProvisioningProfiles=True, projectIncludeRelease=False, generateDsym=False, target=None) Could not find a valid aps-environment entitlement in the provided provisioning profiles

Or try to build from xcode I have issue with profile:

Showing Recent Messages ERROR: /Users/alexeimatsko/Documents/swift/Telegram-iOS/Telegram/BUILD:1689:27: Finding provisioning profile //Telegram:Telegram_local_profile failed: (Exit 1): local_provisioning_profile_finder failed: error executing FindProvisioningProfile command (from target //Telegram:Telegram_local_profile)

(cd /private/var/tmp/_bazel_alexeimatsko/1d0ac5e094d0d0af4cf63ae6980a718d/rules_xcodeproj.noindex/build_output_base/execroot/_main && \

exec env - \

bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_apple+/tools/local_provisioning_profile_finder/local_provisioning_profile_finder 'iOS Team Provisioning Profile: org.3788f871e324d3ed.Telegram' 'bazel-out/ios_sim_arm64-dbg-ios-sim_arm64-min13.0-applebin_ios-ST-04a1eff8420c/bin/Telegram/iOS Team Provisioning Profile: org.3788f871e324d3ed.Telegram.mobileprovision' --team_id UP3BVH49UT)

Configuration: 0d6b26091f3ee4e833f3713db7c93988e9b3b80852a5132c40adf1950e794e73

Execution platform: @@platforms//host:host

INFO: Elapsed time: 7.946s, Critical Path: 0.79s

INFO: 92 processes: 1561 action cache hit, 86 disk cache hit, 6 internal.

ERROR: Build did NOT complete successfully

no provisioning profile was found named 'iOS Team Provisioning Profile: org.3788f871e324d3ed.Telegram'

Also I found that files from https://github.com/TelegramMessenger/Telegram-iOS/tree/master/build-system/fake-codesigning/profiles: Intents.mobileprovision NotificationContent.mobileprovision NotificationService.mobileprovision Share.mobileprovision Telegram.mobileprovision WatchApp.mobileprovision WatchExtension.mobileprovision Widget.mobileprovision

Already expired

bazel 8.3.1 xcode 26.0 Python 3.13.9

AlexeiMatsko avatar Dec 10 '25 15:12 AlexeiMatsko