简体   繁体   English

ios如何调试动态框架?

[英]ios How to debug dynamic framework?

I created a dynamic framework, and I wrote a sample app that uses this framework. 我创建了一个动态框架,并编写了使用该框架的示例应用程序。

I put bp in the dynamic framework code. 我在动态框架代码中放入了bp。 but, bp is not working. 但是,bp不起作用。

What should I do? 我该怎么办?

[*] current setting [*] 当前设置

  1. project : abc 项目:abc
  2. target : 目标:

    • abc-dynamic-framework ABC-动态框架
    • abc-dynamic-sample-app (dependency: abc-dynamic-framework, Embedded Binaries: abc-dynamic-framework) abc-dynamic-sample-app(相关性:abc-dynamic-framework,嵌入式二进制文件:abc-dynamic-framework)
  3. Generate Debug Symbols : All are YES 生成调试符号:全部为是

  4. Strip Debug Symbols During Copy : All are NO 复制期间删除调试符号:否

Assume that you have framework source code: And you have app source code: 假设您具有框架源代码:并且您具有应用程序源代码:

Your project name : project123 Framework name : frame123 您的项目名称:project123框架名称:frame123

Steps: 脚步:

  1. Drag the frame123.xcodeproj file to project123 and check it is expandable or not, If it is expandable so you can now directly use this framework in to your app.(1.png) 将frame123.xcodeproj文件拖至project123并检查其是否可扩展,如果可扩展,则可以直接在应用程序中使用此框架。(1.png)
  2. Add same framework to embedded binaries and check it is showing in linked framework and libraries , If it already there so remove from it and add it again.(2.png) 将相同的框架添加到嵌入式二进制文件中,并检查它是否显示在链接的框架和库中,如果已经存在,请从中删除并再次添加。(2.png)

在此处输入图片说明

在此处输入图片说明

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

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