-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot run simulator on M1 Mac #467
Comments
Building for arm64 simulator is currently implemented is an internal branch. The patches will be published with the next release build. |
With the latest commit it's possible to build the app for arm64 simulators. After checking out Bazel apply this patch: bazelbuild/rules_apple#980 (comment) (rules_swift is already patched and points to our internal fork for now). An x86_64 version of Bazel is still required to build Tulsi (until bazelbuild/bazel#12671 is resolved). After that, use the following command to generate a project file:
|
tried to build bazel for but if you succeeded building bazel for arm and generating project, maybe you could help me with this? my steps were:
|
UPD: this is solved: bazelbuild/bazel#12900 (comment) Full list of steps for building TG:
Your build will be in Note that this build's version will be ➜ ./bazel --version
bazel no_version So you'll need to use flag python3 build-system/Make/Make.py \
--overrideXcodeVersion --overrideBazelVersion \
--bazel="$HOME/bazel-arm/bazel" \
--cacheDir="$HOME/telegram-bazel-cache" \
generateProject \
--bazel_x86_64="$HOME/bazel-dist/bazel"\
--configurationPath="$HOME/telegram-configuration" \
--disableExtensions \
--disableProvisioningProfiles Also note that And this time simulator can be run! |
I would recommend to build Bazel in release mode by adding
|
@bohlool Please open a new issue. |
I built XCode project using bazel (point 6 at README), trying to build the app and run it in the simulator, but getting this error:
I think it's related to this line
Telegram-iOS/build-system/Make/ProjectGeneration.py
Line 149 in 72633df
There's some patch containing
ios_sim_arm64
, but I'm not sure how to apply ithttps://gist.github.com/brentleyjones/17d8bcf308558a19dd54a30e4a6db57a
did you test it running on M1 Mac? I see the repo is updated for arm CPU, but I cannot run it on my machine because sim is not starting
Environment
Device:
Apple MacBook Pro (13-inch, M1, 2020)
macOS version:
11.1 (20C69)
Some more screenshots in case it can help:
The text was updated successfully, but these errors were encountered: