Xcode10编译时遇到的一些问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yingBi2014/article/details/82757054

问题1描述
error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target’s code sign settings match the parent app’s.
Embedded Binary Signing Certificate: Software Signing
Parent App Signing Certificate: - (Ad Hoc Code Signed)
或者
error: Multiple commands produce ‘xxxx’:
Target ‘xxxModule’ (project ‘Pods’) has copy command from ‘xxxx’ to ‘yyyy’
Target ‘xxxModule’ (project ‘Pods’) has copy command from ‘zzzz’ to ‘pppp’

参考链接
这个问题是因为Xcode工程配置强校验引起的,解决办法有两种:
第一种方法:
在build phases的copy build resources中找到该文件(plist),删除之
第二种方法:
将工程的配置设置为老模式,Xcode->File->Project Settings-> Build System -> Legacy Build System.

问题2描述:library not found for -lstdc++.6.0.9

这是因为apple在Xcode10中取消了内置支持的 libstdc++ 库。
解决办法::可以直接添加libc++ ,移除libstdc++6.0.9,或者麻烦一点从Xcode 9 那边拷贝一个libstdc++.6.tbd 和 libstdc++.6.0.9.tbd到xcode10中
路径如下:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

猜你喜欢

转载自blog.csdn.net/yingBi2014/article/details/82757054