Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcrun -sdk iphoneos clang is unable to create an executable file #119

Closed
mrbrantofgithub opened this issue Jan 24, 2018 · 7 comments
Closed
Labels

Comments

@mrbrantofgithub
Copy link

Error information is shown below:
xcrun -sdk iphoneos clang is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.

@kewlbear
Copy link
Owner

As you can see in the message, I have to see config.log to figure out the reason.

@mrbrantofgithub
Copy link
Author

@kewlbear Thank you for your reply. But I don't know where to find the "config.log" file.

@kewlbear
Copy link
Owner

You can do the following:

find -name config.log

@mrbrantofgithub
Copy link
Author

Below is the last part of config.log. I have emailed the config.log file to ffmpeg-user@ffmpeg.org
My Xcode is version 9.2
"xcrun -sdk iphoneos clang -arch arm64 -mios-version-min=6.0 -fembed-bitcode -c -o /var/folders/3s/r_mvg2dd7hz5nyd5my5jztrh0000gp/T/ffconf.K8OIrHVS/test.o /var/folders/3s/r_mvg2dd7hz5nyd5my5jztrh0000gp/T/ffconf.K8OIrHVS/test.c
xcrun: error: SDK "iphoneos" cannot be located
xcrun -sdk iphoneos clang -arch arm64 -mios-version-min=6.0 -fembed-bitcode -o /var/folders/3s/r_mvg2dd7hz5nyd5my5jztrh0000gp/T/ffconf.K8OIrHVS/test /var/folders/3s/r_mvg2dd7hz5nyd5my5jztrh0000gp/T/ffconf.K8OIrHVS/test.o
xcrun: error: SDK "iphoneos" cannot be located
ld: warning: ignoring file /usr/lib/libSystem.dylib, missing required architecture arm64 in file /usr/lib/libSystem.dylib (2 slices)
ld: dynamic main executables must link with libSystem.dylib for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
C compiler test failed."

@kewlbear
Copy link
Owner

After googling “xcrun: error: SDK "iphoneos" cannot be located”, I’m guessing some reasons:

  1. Did you rename Xcode.app?
  2. Did you install command line tools?

@mrbrantofgithub
Copy link
Author

I fixed “xcrun: error: SDK "iphoneos" cannot be located” by referring to "gomatcha/matcha#6"
with "sudo xcode-select --switch /Applications/Xcode.app"
Thank you for your help again.

@kewlbear
Copy link
Owner

Glad I could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants