“运行”时的 SIGABRT应用程序
GDB: Program received signal "SIGABRT"
根据构建日志,我遇到了一些问题,请您解释一下可能导致这些错误的可能性。感谢所有帮助。
项目摘要:
我有两个项目,我从一个项目文件夹中取出了一些 .h、.m 和 .a 文件,将它们拖到另一个项目中,然后遍历 菜单>项目>>添加到项目 我已将它们导入到项目的静态库中。
为了隐私起见,我删除了一些代码行的详细信息。
以下是我遇到的错误...
找到了在 _SOGLH 中没有存储的branch-22
在 TrackerInterface::InstantiateTracker() 中找到没有存储的分支 22
ld:警告:忽略文件 /Users/myname/Desktop/*projectname*/*It's_a_dot_A_file*.a,文件是为存档而构建的,该文件不是正在链接的架构(armv7)
我对 Xcode 比较陌生,所以我对某些术语没有信心,所以请记住这一点。
国王的问候, R。
GDB: Program received signal "SIGABRT"
I'm running a problem with a few things according to the Build log, please could you shed light on the possibilities that these errors could be caused by. All help is appreciated.
Summary of project:
I have two projects which i have taken some .h, .m and .a files from one project folder, dragged them into the other project, then going through
Menu > Project > Add to project I have imported them into the Static Library of the project.
Some lines of code I have blanked my details out for privacy.
Here are the errors I'm getting...
found branch-22 without store in _SOGLH
found branch-22 without store in TrackerInterface::InstantiateTracker()
ld: warning: ignoring file /Users/myname/Desktop/*projectname*/*It's_a_dot_A_file*.a, file was built for archive which is not the architecture being linked (armv7)
I'm relatively new to Xcode so I'm not confident with some of the terms so please bear that in mind.
King Regards,
R.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于最后一个错误,它是不言自明的:您正在尝试包含为不同架构构建的库 (
.a
) 文件。可能是为 OSX-32 位或 OSX-64 位构建的库,并且您正在尝试将其用于 iOS(使用架构 armv6 和 armv7)。
为正确的架构 (armv7) 重新构建库,如果它是第三方库,请针对适当的架构使用适当的
.a
文件。For the last error, it is quite self-explanatory: you are trying to include a library (
.a
) file that has been built for a different architecture.Probably a library that has been built for OSX-32bits or OSX-64bits and that you are trying to use for iOS (which uses architectures armv6 & armv7).
Rebuild the library for the correct architecture (armv7) of if it is a third-party library, use the appropriate
.a
file for the appropriate architecture.