When I try to build srt on apple slicon(m1) chipset, I get the following error:
What is the workaround?
yegon@Blackwoolf71ui-MacBookPro SRT % ./build_srt.sh
~/Desktop/Projects/iOS/VideoCast-Swift/SRT/build/ios_x86_64 ~/Desktop/Projects/iOS/VideoCast-Swift/SRT
NOTE: toolchain changed by '--cmake-toolchain-file' option
NOTE: Cannot obtain compiler, assuming toolchain file will do what's necessary
Running: cmake ../../srt -DCMAKE_PREFIX_PATH=/Users/gimhyegon/Desktop/Projects/iOS/VideoCast-Swift/SRT/openssl/bin/iPhoneSimulator13.4-x86_64.sdk -DUSE_OPENSSL_PC=OFF -DCMAKE_TOOLCHAIN_FILE=scripts/iOS.cmake -DENABLE_DEBUG=0 -DIOS_PLATFORM=SIMULATOR64 -DIOS_ARCH=x86_64
CMake Error at scripts/iOS.cmake:135 (message):
No iOS SDK's found in default search path
/Library/Developer/CommandLineTools/Platforms/iPhoneSimulator.platform/Developer.
Manually set CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:15 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CONFIGURE: cmake reported error: child process exited abnormally
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Projects/iOS/VideoCast-Swift/SRT
~/Desktop/Projects/iOS/VideoCast-Swift/SRT/build/ios_arm64 ~/Desktop/Projects/iOS/VideoCast-Swift/SRT
NOTE: toolchain changed by '--cmake-toolchain-file' option
NOTE: Cannot obtain compiler, assuming toolchain file will do what's necessary
Running: cmake ../../srt -DCMAKE_PREFIX_PATH=/Users/gimhyegon/Desktop/Projects/iOS/VideoCast-Swift/SRT/openssl/bin/iPhoneOS13.4-arm64.sdk -DUSE_OPENSSL_PC=OFF -DCMAKE_TOOLCHAIN_FILE=scripts/iOS.cmake -DENABLE_DEBUG=0 -DIOS_PLATFORM=OS -DIOS_ARCH=arm64
CMake Error at scripts/iOS.cmake:135 (message):
No iOS SDK's found in default search path
/Library/Developer/CommandLineTools/Platforms/iPhoneOS.platform/Developer.
Manually set CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:15 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CONFIGURE: cmake reported error: child process exited abnormally
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Projects/iOS/VideoCast-Swift/SRT
cp: ./build/ios_arm64/version.h: No such file or directory
fatal error: /Library/Developer/CommandLineTools/usr/bin/lipo: can't open input file: ./build/ios_x86_64/libsrt.a (No such file or directory)

What options should be used when building?
thank.
When I try to build srt on apple slicon(m1) chipset, I get the following error:
What is the workaround?
yegon@Blackwoolf71ui-MacBookPro SRT % ./build_srt.sh
~/Desktop/Projects/iOS/VideoCast-Swift/SRT/build/ios_x86_64 ~/Desktop/Projects/iOS/VideoCast-Swift/SRT
NOTE: toolchain changed by '--cmake-toolchain-file' option
NOTE: Cannot obtain compiler, assuming toolchain file will do what's necessary
Running: cmake ../../srt -DCMAKE_PREFIX_PATH=/Users/gimhyegon/Desktop/Projects/iOS/VideoCast-Swift/SRT/openssl/bin/iPhoneSimulator13.4-x86_64.sdk -DUSE_OPENSSL_PC=OFF -DCMAKE_TOOLCHAIN_FILE=scripts/iOS.cmake -DENABLE_DEBUG=0 -DIOS_PLATFORM=SIMULATOR64 -DIOS_ARCH=x86_64
CMake Error at scripts/iOS.cmake:135 (message):
No iOS SDK's found in default search path
/Library/Developer/CommandLineTools/Platforms/iPhoneSimulator.platform/Developer.
Manually set CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:15 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CONFIGURE: cmake reported error: child process exited abnormally
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Projects/iOS/VideoCast-Swift/SRT
~/Desktop/Projects/iOS/VideoCast-Swift/SRT/build/ios_arm64 ~/Desktop/Projects/iOS/VideoCast-Swift/SRT
NOTE: toolchain changed by '--cmake-toolchain-file' option
NOTE: Cannot obtain compiler, assuming toolchain file will do what's necessary
Running: cmake ../../srt -DCMAKE_PREFIX_PATH=/Users/gimhyegon/Desktop/Projects/iOS/VideoCast-Swift/SRT/openssl/bin/iPhoneOS13.4-arm64.sdk -DUSE_OPENSSL_PC=OFF -DCMAKE_TOOLCHAIN_FILE=scripts/iOS.cmake -DENABLE_DEBUG=0 -DIOS_PLATFORM=OS -DIOS_ARCH=arm64
CMake Error at scripts/iOS.cmake:135 (message):
No iOS SDK's found in default search path
/Library/Developer/CommandLineTools/Platforms/iPhoneOS.platform/Developer.
Manually set CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:15 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CONFIGURE: cmake reported error: child process exited abnormally
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Projects/iOS/VideoCast-Swift/SRT
cp: ./build/ios_arm64/version.h: No such file or directory
fatal error: /Library/Developer/CommandLineTools/usr/bin/lipo: can't open input file: ./build/ios_x86_64/libsrt.a (No such file or directory)
What options should be used when building?
thank.