开发者

Creating universal Cocoa framework that can be included in a 32-bit or 64-bit application

开发者 https://www.devze.com 2023-02-13 16:35 出处:网络
I want to create a Cocoa framework that can be included in a 32-bit or 64-bit application. Is there a way that I can create a single universal build of my framework that will work in both? Or do I hav

I want to create a Cocoa framework that can be included in a 32-bit or 64-bit application. Is there a way that I can create a single universal build of my framework that will work in both? Or do I have t开发者_Python百科o compile two different versions of my framework?


Figured it out. With the default configuration, a new framework will build universal when you build it as Release, but built as Debug, it is by default your own architecture only (to speed it up).

So either build as Release (recommended) or edit the target settings and change the key (Build Active Architecture Only) for the Debug configuration.

0

精彩评论

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

关注公众号