开发者

How to bundle dylibs correctly on OSX?

开发者 https://www.devze.com 2023-03-22 18:30 出处:网络
My app depends on libcurl and libexpat. I have no specific requirements in my app and want to target 10.6.0 and up. At the moment I just link to the libs the standard way ( added them with Xcode ). Bu

My app depends on libcurl and libexpat. I have no specific requirements in my app and want to target 10.6.0 and up. At the moment I just link to the libs the standard way ( added them with Xcode ). But that messes up my app. If I compile it on Lion it won't work on Snow Leopard. It complains the libs are to old. How do I spe开发者_Go百科cify a minimum version needed? Or should I just copy the libs into my bundle? Can I copy the ones from Lion to make it work on 10.6? Thanks

Edit: Is this as easy as setting the Base SDK to 10.6?


Its as simple as using an older base SDK. In this case 10.5

0

精彩评论

暂无评论...
验证码 换一张
取 消