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

New arguments when generate project

Open mujaiah opened this issue 4 years ago • 7 comments

Hello guys, could you provide some information about --gitCodesigningRepository --gitCodesigningType arguments in generateProject function and show examples maybe, i can't generate project because of this new args. Thank you.

I'm getting error: Make generateProject: error: one of the arguments --gitCodesigningRepository --codesigningInformationPath is required

mujaiah avatar Sep 26 '22 14:09 mujaiah

How did you resolve this issue?

Ivan-Yushkov avatar Sep 28 '22 15:09 Ivan-Yushkov

@Ivan-Yushkov

How did you resolve this issue?

You can copy and paste the fake-code signing folder from the build-system to telegram-configuration, then use a command python3 build-system/Make/Make.py --cacheDir="$HOME/telegram-bazel-cache" generateProject --configurationPath="$HOME/telegram-configuration/development-configuration.json" --disableExtensions --disableProvisioningProfiles --codesigningInformationPath "$HOME/telegram-configuration/fake-codesigning" Make sure that development-configuration.json exist, and you can use the example in build-system/appstore-configuration.json

aldammit avatar Sep 30 '22 02:09 aldammit

Maybe someone knows what to do about it?

Required Xcode version is 14.0, but 14.0.1 is reported by 'xcode-select -p'

Lytvynets avatar Oct 05 '22 14:10 Lytvynets

@Lytvynets, check xcode in versions.json.

nikolaykargin avatar Oct 07 '22 14:10 nikolaykargin

@Lytvynets python3 build-system/Make/Make.py --overrideXcodeVersion build ... # Don't check the version of Xcode

moruadd avatar Oct 08 '22 19:10 moruadd

@Ivan-Yushkov

How did you resolve this issue?

You can copy and paste the fake-code signing folder from the build-system to telegram-configuration, then use a command python3 build-system/Make/Make.py --cacheDir="$HOME/telegram-bazel-cache" generateProject --configurationPath="$HOME/telegram-configuration/development-configuration.json" --disableExtensions --disableProvisioningProfiles --codesigningInformationPath "$HOME/telegram-configuration/fake-codesigning" Make sure that development-configuration.json exist, and you can use the example in build-system/appstore-configuration.json

after this recommendation it's next error: Could not find a valid aps-environment entitlement in the provided provisioning profiles how fix it?

UPDATE:

this error was because I replaced the values in "$HOME/telegram-configuration/development-configuration.json" if you want to use "$HOME/telegram-configuration/fake-codesigning" - don't replace these values

ibohonos avatar Oct 11 '22 11:10 ibohonos

I got some errors:

1 warning generated. ERROR: /Users/weixiaobin/Telegram-iOS/Telegram/BUILD:1747:14: Processing and signing NotificationServiceExtension failed: (Exit 1): process-and-sign-54436305.sh failed: error executing command (cd /private/var/tmp/_bazel_Amy/40d386df50af74df78f36125cbf8ace6/execroot/main &&
exec env -
APPLE_SDK_PLATFORM=iPhoneOS
APPLE_SDK_VERSION_OVERRIDE=16.0
XCODE_VERSION_OVERRIDE=14.0.1.14A400
bazel-out/applebin_ios-ios_armv7-opt-ST-5b7531beec20/bin/Telegram/NotificationServiceExtension-intermediates/process-and-sign-54436305.sh should_sign should_compress)

Configuration: 55ac85af467c0852b40b5a17ea9a235c3643b5e1e32c1946185f8d4a033b0896

Execution platform: @local_config_platform//:host

ERROR: Unable to find an identity on the system matching the ones in external/build_configuration/provisioning/NotificationService.mobileprovision Target //Telegram:Telegram failed to build INFO: Elapsed time: 454.123s, Critical Path: 450.67s INFO: 1321 processes: 34 internal, 1287 local. FAILED: Build did NOT complete successfully Traceback (most recent call last): File "build-system/Make/Make.py", line 958, in build(bazel=bazel_path, arguments=args) File "build-system/Make/Make.py", line 566, in build bazel_command_line.invoke_build() File "build-system/Make/Make.py", line 341, in invoke_build call_executable(combined_arguments) File "/Users/weixiaobin/Telegram-iOS/build-system/Make/BuildEnvironment.py", line 81, in call_executable subprocess.check_call(resolved_arguments, env=resolved_env) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.

mailes avatar Oct 22 '22 03:10 mailes