I have a Mac OS X project that compiles fine under 10.6, but then I compile it on my 10.7 machine I get the following link error:
ld: warning: directory not found for option '-L/Developer/SDKs/MacOSX10.7.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1'
The MacOSX10.7 SDK is installed and it does show up in xcode 4 as one "Latest Mac OS X" in Build Settings. I have "i386 x86_64" for my Valid Architectures setting.
I'm pretty sure it's just some Build Setting I've got wrong, but I can't for the life of me find it. Anyone know what is causing this?
Related
When I searched for a mac os x opengl tutorial and tried to build it, I got the following error message. I tried to change "OS X Deployment Target" to 10.10 Yosemite (which I am running), but it has no effect. I can't find any documentation online to explain what might be going wrong, nor could I find any tutorials about XCode 7. Any ideas on what I'm doing wrong?
"My Mac runs OS X 10.10.5, which is lower than tutorial01_first_window’s minimum deployment target. Change your project’s minimum deployment target or upgrade My Mac’s version of OS X."
Here is the original tutorial I downloaded and built with CMake according to the instructions:
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/
I ran into the exact same thing. I'm running 10.10.5 Yosemite and am using Xcode 7.0.1 with CMake 3.3.2 and it insisted on generating 10.11 deployment targets.
This answer is a bit dated, but it got me a long way towards a solution:
https://stackoverflow.com/a/26329890/2059999
I can get it to work by manually setting the OS X Deployment Target on the target binary in my project to 10.10, but CMake will clobber my change each time it gets re-run which is annoying.
I ran into this problem after a recent upgrade of Xcode (Version 7.0.1). It turns out that the default deployment target for it is OS X 10.11, which is higher than the one I have. The solutions above do work. However, to set this "permanently" in CMake, find the advanced option "CMAKE_OSX_DEPLOYMENT_TARGET" and set it to the one on your system, e.g. 10.10.
Setting CMAKE_OSX_DEPLOYMENT_TARGET
I was having this message with homebrew and updating Xcode from 7.3.1 to Xcode 8.1 fixed it
Hi I have iMac with OS X Yosemite version 10.10.3 and I've installed the last Xcode 6.3 beta 2 with Swift 1.2 and when I try to Run the App I receive:
Check dependencies
Unable to determine compiler to use - the abstract compiler specification is missing from this Xcode installation.
and everytime when I open my project with Xcode I receive a warning:
warning: no rule to process file '/Users/Bogdan-iMac/Desktop/My App/My App/My_App.xcdatamodel' of type wrapper for architecture x86_64
and I have to open Build Phases in Compile Sources I have to remove My_App.xcdatamodel and add it again to prevent the warning
Link in Apple Dev Forums: https://devforums.apple.com/thread/263126
I had the same problem. Restart helped, even under Yosemite 10.10.2
I had the same problem here. The error disappeared after upgrading Yosemite to version 10.10.3 (14D87h) from today.
restart XCode-Beta helps me! And my Yosemite is 10.10.3 Xcode is Version 6.3 (6D532l)
After installing 4.4, I tried building a current project, and get the error: Lexical or preprocessor issue 'mach_debug/mach_debug_types.h' file not found. It then shows me an include in the file MacOSX10.8/user/include/mach/host_priv.h. I get the same error regardless of whether i select 10.7 or 10.8 as the target os. I can't find the file (or the mach_debug directory) on my machine.
Any ideas?
I fixed it just copying folder ../MacOSX10.7/user/include/mach_debug to ../MacOSX10.8/user/include/
You only need to change your Base SDK in the Build Settings section of your current target from Mac OS X 10.8 to Mac OS X 10.7, then recompile, it should work.
I want to compile a lib for arm architecture. Apparently Xcode has inserted a path "arm-apple-darwin11-llvm-g++-4.2".
Two Questions:
Where can I change this setting?
I only find the arm-apple-darwin10-llvm-g++-4.2 on my system, how can I update to arm-apple-darwin11-llvm-g++-4.2?
The XCode compiler can usually be selected by clicking your project and then selecting "Build Settings" and there under "Build Options".
Darwin11 is OS X Lion 10.7,
so when you want to upgrade the compiler, you will have to upgrade your OS and reinstall XCode.
Edit: As I just have seen, there seems to be no darwin11 variant for the arm compiler. There is only a i686 (and x86_64)-apple-darwin11 compiler.
Maybe the darwin11 for arm is in the next release? I don't know...but XCode 4.2.1(4D502) - the current production release - shouldn't be referring to an arm-apple-darwin11-llvm-g++-4.2 .
There is, however, a directory called arm-apple-darwin11 in the 10.7 SDK directories, but on my system (10.7.2 latest MBA, never had 10.6 installed on it) its empty.
apple darwin is the core of OSX, I think the easiest way (if not the only one) to get darwin 11 running is to upgrade your OSX to 10.7.1
edit: damn cli_hlt you're fast!
When I try to build my app for 10.4, ppc, I get the following error:
GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file MBM.m)
What does this mean, and how can I stop it and build for 10.4?
MBM.m: http://localhostr.com/files/bb385f/MBM.m
Sorry for the brief explanation, but I have to go.
Please help,
HiGuy S
You need to change your compiler. Edit the active target (Project -> Edit Active Target) and find the C/C++ Compiler Version setting to change it to an older version of GCC. I think version 3 is appropriate; if you don't have it, and if I recall correctly, it's an optional install with the Developer Tools you should have on your Mac OS X CD.