简体   繁体   English

iOS SDK-在运行时崩溃中公开的Objective C中的实现文件

[英]iOS SDK - Implementation file in Objective C exposed during run time crash

I have a public class A having a method toDo all written in objective c which is part of a SDK. 我有一个公共类A,该类具有一种方法DoDo,所有方法都用SDK的目标c编写。 I am able to invoke this method toDo from another project which i created. 我能够从我创建的另一个项目中调用此方法toDo。 However when i try to do a command click on the method invocation from my project i can only see the header file of class A and not how toDo method is implemented in the .m file. 但是,当我尝试执行命令时,请从我的项目中单击方法调用,我只能看到A类的头文件,而无法在.m文件中实现toDo方法。 But now i have forcefully embedded a crash in toDo and when i run my project again i see xcode showing up full details of the .m file of class A and where the crash is happening on runtime. 但是现在我已经将崩溃强制嵌入了toDo中,当我再次运行项目时,我看到xcode显示了A类.m文件的完整详细信息以及崩溃在运行时发生的位置。 This is exposing all the details of the .m file. 这将公开.m文件的所有详细信息。 How do i restrict this not showing up the details of .m file ? 如何限制不显示.m文件的详细信息? Any idea. 任何想法。

you have to compose(compile) your A class into framework or library. 您必须将A类组成(编译)到框架或库中。 For your library you will provide .h file with interface of your classes. 对于您的库,您将为.h文件提供类的接口。

Most likely you added your SDK as subproject, with all implementation details. 您很可能已将SDK添加为子项目,其中包含所有实施细节。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM