博客> 集成环信SDK 3.4.0
集成环信SDK 3.4.0
2018-10-22 01:55 评论:0 阅读:411 kyloMooa
ios not library dyld: loaded

dyld: Library not loaded 报错

1. 前天上架App被苹果拒了,说我的App中使用了私有Api,原文如下:

发件人 Apple
2. 5 Performance: Software Requirements
Guideline 2.5.1 - Performance - Software Requirements

Your app uses or references the following non-public APIs:

com.apple.springboard.lockcomplete

The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change. 

Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.

Next Steps

If you are using third-party libraries, please update to the most recent version of those libraries. If you do not have access to the libraries' source, you may be able to search the compiled binary using the "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods. These tools can help you narrow down where the problematic code resides. You could also use the "nm" tool to verify if any third-party libraries are calling these APIs.

Resources

For information on the "nm" tool, please review the "nm tool" Xcode manual page.

If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.

看到这里我心里默念苹果爸爸不会是忽悠我的吧,之前都没有,我把整个Project工程搜遍了都没找到哪里用了"com.apple.springboard.lockcomplete",在网上一查原来是锁屏的Api,估摸着大概是环信SDK的问题,于是用grep -r "com.apple.springboard.lockcomplete" libHyphenateFullSDK.a的确使用了。 联系了环信的技术人员,建议我升级SDK到3.4.0。好吧,开干开干。

2. 把新的SDK拖入到工程中,一切看上去都很不错,简单的改了下头文件然后Command+R,飞起来吧。✈✈✈✈✈✈✈✈ dyld: Library not loaded image not found

什么鬼,导入的方式也没啥问题呀,贴吧的同志说把framework改为option,我要说真是误人子弟,这样改运行是没问题了,but工程根本没有加载上framework嘛。我又尝试了修改Header Search Path 、Other Link Flags然而并无效果。不信邪了,建了个新工程把framework拖进去,用个人开发证书跑起来居然没问题!!!难道真是证书的问题?立刻我把钥匙串的证书信任模式改为由Trust改成SystemDefault,然后RUN,完美运行!

最后我想说一句-----------证书你管的未免太宽了吧

收藏
0
sina weixin mail 回到顶部