Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何NSZombieEnabled,SAutoreleaseFreedObjectCheckEnabled,MallocStackLoggingNoCompact 通过代码设置这些值。我不想通过 Xcode 编辑方案设置这些值。知道吗?
NSZombieEnabled,SAutoreleaseFreedObjectCheckEnabled,MallocStackLoggingNoCompact
在 iOS 上,这将更难,因为您需要在运行之前执行代码__CFInitialize,并且您无法控制图像的加载方式(至少,如果您计划在商店中发布您的应用程序,则无法控制)。
__CFInitialize
对不起,我之前的回答是针对 OSX 的,我(错误地)认为它在 iOS 上是一样的,但经过一番思考,这不是因为你没有动态库。