chrisballinger/Opus-iOS

C compiler cannot create executables in Xcode 9.4.1

Opened this issue ยท 5 comments

when compiling bash build-libopus.sh, it shows Cannot Run C Compiled programs.

configure: error: in `/Users/mac/Downloads/OpusKit-master/Submodules/Opus-iOS/build/src/opus-1.1.3':
configure: error: C compiler cannot create executables

I'm late to the party but I had the same problem. Changing SDK version to 11.4 in build-libopus.sh fixed my problem. If you want to see your SDKs you can do it with: xcodebuild -showsdks

I've only updated
VERSION="1.3"
SDKVERSION="12.1"
and everything work

xuan9 commented

Please build-libopus.sh to auto choose SDK version:
SDKVERSION=$(xcrun --sdk iphoneos --show-sdk-version)

Please build-libopus.sh to auto choose SDK version:
SDKVERSION=$(xcrun --sdk iphoneos --show-sdk-version)

Thanks, that solved my problem.

Please build-libopus.sh to auto choose SDK version:
SDKVERSION=$(xcrun --sdk iphoneos --show-sdk-version)

Thanks, Best answer, you save my day