Weak link structure in Mac OS X now works?

I am creating an application for Mac OS X in which I want to use AVFoundation and CoreMedia. The problem is that these frames are not available on Mac OS X 10.6. There are different projects in our application, and some of the projects use AVFoundation and CoreMedia, and our main project does not use this framework.

I want to run the same application on Mac 10.6 and later, so I tried a weak link for AVFoundation and CoreMedia. After setting the deployment target to 10.6 in my main project, I set AVFoundation and CoreMedia as optional in all other projects. I create my application in 10.7 Mac, and when I try to run it in 10.6 Mac OS X, it gives the following errors:

Library not loaded: /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia

Link to: /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation

So he is still trying to download it, so I think something is missing. I also checked the link on Mac OS X, but did not understand how to fix it. Can someone help me.

Anyone can help me use:

-weak_framework

As if I had two frameworks for loosely linking AVFoundation and CoreMedia, what would be the -weak_framework syntax.

+3
source share

All Articles