Skip to content

New arguments when generate project #849

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
mujaiah opened this issue Sep 26, 2022 · 7 comments
Closed

New arguments when generate project #849

mujaiah opened this issue Sep 26, 2022 · 7 comments

Comments

@mujaiah
Copy link

mujaiah commented Sep 26, 2022

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 mujaiah closed this as completed Sep 27, 2022
@Ivan-Yushkov
Copy link

How did you resolve this issue?

@aldammit
Copy link

@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

@Lytvynets
Copy link

Maybe someone knows what to do about it?

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

@nikolaykargin
Copy link

@Lytvynets, check xcode in versions.json.

@moruadd
Copy link

moruadd commented Oct 8, 2022

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

@ibohonos
Copy link

ibohonos commented Oct 11, 2022

@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

@mailes
Copy link

mailes commented Oct 22, 2022

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.

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

8 participants