diff --git a/FAQ.md b/FAQ.md index 7ddf186..64480cf 100644 --- a/FAQ.md +++ b/FAQ.md @@ -364,6 +364,28 @@ https://github.com/rustdesk/rustdesk/discussions/6377#discussioncomment-8094952 https://github.com/rustdesk/rustdesk/discussions/5345#discussioncomment-6772568 +**Instructions to run RustDesk on iOS Simulator [MacOs Apple Silicon]:** + +- Follow the [CI for ios](https://github.com/rustdesk/rustdesk/blob/master/.github/workflows/flutter-build.yml#L379) till +https://github.com/rustdesk/rustdesk/blob/662a768d8382c7de22321e1a2646e8c7bee4f12b/.github/workflows/flutter-build.yml#L436 +- Make sure to use target `x86_64-apple-ios` instead of `aarch64-apple-ios` here 👆 +- Try `flutter run` and you might get some path error. So search and replace code containing path `target/aarch64-apple-ios` to `target/x86_64-apple-ios` +- Now you will run into some errors related to architecture mismatch. To fix this add the following to your Podfile + +```diff +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + target.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' ++ config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64 i386" + end + end +end + ``` +Source: https://github.com/flutter/flutter/issues/94914#issuecomment-992898782 +- `flutter run` 👍 +