美文网首页iOS多工程联编
<IOS><Xcode>解决Can

<IOS><Xcode>解决Can

作者: _菩提本无树_ | 来源:发表于2018-04-18 13:50 被阅读177次

今天在做多工程联编的时候,主工程调用子工程framework库中的方法时,编译遇到了“Can't map file, errno=22 file 'xxx' for architecture arm64(armv7)”问题!

起因是我在主项目中,build setting-----》other linker flags 中-force_load了该framework库

网上有以下几种办法:

1,找到引用项目的build setting----》build active architecture only ----》设置成NO

我原本就是NO,所以结果没啥用

2,最后尝试了这一种办法

将主项目中other linker flages 中的-force_load "XXX.framework"改成“-force_load "XXX.framework/XXX”其中XXX是静态库名就ok了!
附图一张


屏幕快照 2018-04-18 下午1.47.22.png 屏幕快照 2018-04-18 下午1.47.37.png

如果需要指向多个framework我是这么做的重复添加-force_load + 路径,事实证明可以,应该有简单的写法,暂时不了解如果有大神了解,请留言告知谢谢!,见下图!

屏幕快照 2018-04-18 下午2.04.05.png

相关文章

  • <IOS><Xcode>解决Can

    今天在做多工程联编的时候,主工程调用子工程framework库中的方法时,编译遇到了“Can't map file...

  • Read a story

    This is a lion. lt's big. lt's strong. lt has big teeth. ...

  • Mybatis中特殊符号转移

    1. 写法1 原符号替换符号<<<=<=>>>=>=<><>&&'&a...

  • Read a story

    lt's hot?? lt's cool here. lt's a hat. What's this? Do yo...

  • test

    <script>alert(1);</script>

  • 无标题文章

    <script>alert('hello’);</script>

  • 芯科通信招聘fw固件工程师

    职责描述 工作职责:lt;/pgt;lt;pgt;1、负责光模块firmware的软件设计、维护以及优化;lt;/...

  • 打卡第47天

    Attention is vitality. lt connects you with others. lt ma...

  • Listen and enjoy

    lt can be bitter. lt can be sweet. Sometimes it's black. ...

  • 2018-10-08

    线性系统的LT分析法一、数学角度1、对微分方程进行LT分析eg:同求LT变换得到2、对电路进行LT处理对于线性电路...

网友评论

    本文标题:<IOS><Xcode>解决Can

    本文链接:https://www.haomeiwen.com/subject/onuvkftx.html