Skip to content
vhuseinova-msft edited this page Nov 2, 2022 · 1 revision

iOS

Xcode build error with M1 Macbooks

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 

Android

SDK location not found error for Android

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

Android SDK directory does not exist

If you seeing this error when trying to run the Android app, you will need to set environment variables for Android SDK.

Windows:

  1. Right click My computer
  2. Click Properties
  3. Click Advanced system setting
  4. Click Environment Variables
  5. Change PATH variable to ;\yourSdkHome\tools;\yourSdkHome\platform-tools
  6. Close cmd prompt and reopen

MacOS:

  1. 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.

  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
  1. Save changes and close
  2. Compile the changes:
source ~/.zshrc
Clone this wiki locally