-
Notifications
You must be signed in to change notification settings - Fork 13
FAQ
vhuseinova-msft edited this page Nov 2, 2022
·
1 revision
If you are seeing this error when running the iOS app in Xcode, you'd need to switch to Resetta mode:
The following build commands failed:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'AzureCommunicationUICalling' from project 'Pods')
To switch terminal to Rosetta mode:
- Close terminal completely
- Open Applications/Utilities in finder
- GetInfo on Terminal
- make sure that "Open using Rosetta" is checked
If you have this problem when you run the react-native project, you can open the android project with Android Studio.
If this does not help, in the android
folder create a file with following name local.properties
and the following line:
In Windows:
sdk.dir=C:\\Users\\UserName\\AppData\\Local\\Android\\sdk
In MacOS:
sdk.dir = /Users/USERNAME/Library/Android/sdk
If you seeing this error when trying to run the Android app, you will need to set environment variables for Android SDK.
Windows:
- Right click My computer
- Click Properties
- Click Advanced system setting
- Click Environment Variables
- Change
PATH
variable to;\yourSdkHome\tools;\yourSdkHome\platform-tools
- Close cmd prompt and reopen
MacOS:
- Open .zshrc file in Terminal:
open ~/.zshrc
1a. If .zshrc file does not exist, use touch
to create it:
touch ~/.zshrc
and repeat step 1.
- Add variables to .zshrc file:
export ANDROID_SDK=/Users/<your_computer_name>/Library/Android/sdk
export PATH=/Users/<your_computer_name>/Library/Android/sdk/platform-tools:$PATH
- Save changes and close
- Compile the changes:
source ~/.zshrc