如何解决Cocoapods静态Pod podspec.json添加模拟器
我有一个静态容器,它的podspec.json我不能使用xcframework,因为它似乎不起作用,它的构建有错误。我可以在iPhone设备上运行它,但不能在模拟器上运行。问题在于,使用Xcode 12可以构建2个独立的框架,一个框架具有iphoneos路径,另一个具有iphonesimulator路径,我试图包括另一个平台,但是它不起作用。我有这个平台和子规格:
"platforms": {
"osx": "10.11","ios": "9.0","ios.simulator": "9.0","tvos": "10.0","tvos simulator": "10.0"
},"subspecs": [
{
"name": "Core","ios": {
"source_files": [
"iOS/iphoneos/MyPod.framework/Headers/*.h"
],"public_header_files": [
"iOS/iphoneos/MyPod.framework/Headers/*.h"
],"vendored_frameworks": [
"iOS/iphoneos/MyPod.framework"
]
},"ios.simulator": {
"source_files": [
"iOS/iphonesimulator/MyPod.framework/Headers/*.h"
],"public_header_files": [
"iOS/iphonesimulator/MyPod.framework/Headers/*.h"
],"vendored_frameworks": [
"iOS/iphonesimulator/MyPod.framework"
]
},
我认为我应该将平台设置为 ios.simulator,iphonesimulator,ios模拟器。但是我已经尝试了全部,但都没有。有谁知道不使用xcframework的解决方案(它有错误)吗?我尝试过lipo将它们结合起来,但它告诉我
have the same architectures (arm64) and can't be in the same fat output file
任何帮助将不胜感激,我已经寻找了数小时的解决方案,却没有找到任何解决方法...
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。