我负责一个依赖另一个豆荚的可可胶,这又取决于另一个豆荚。我对其他任何一个豆荚都不负责。当我在M1 Mac上的POD上运行 POD LIB LINT
时,它会出现错误:
为iOS模拟器构建,但在为iOS构建的dylib中链接,file'...'架构ARM64
我已经阅读了如此发布,然后添加
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
到我的podspec中。我还尝试过添加'halle_active_arch'=> '是'
。但是我仍然遇到同样的错误。
为什么 pod lib lint
忽略了排除的架构,并且有没有办法在不构建ARM64的情况下填充Pod?
由于我对其他豆荚不负责,所以我无法向其添加ARM64支持。
任何帮助都非常感谢。
I'm responsible for a cocoapod, which depends on another pod, which in turn depends on another pod. I'm not responsible for either of the other pods. When I run pod lib lint
on my pod on an M1 mac it fails with the error:
Building for iOS Simulator, but linking in dylib built for iOS, file '...' for architecture arm64
I've read the answers to this SO post, and added
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
to my podspec. I've also tried adding 'ONLY_ACTIVE_ARCH' => 'YES'
. But I still get the same error.
Why is pod lib lint
ignoring the excluded architectures, and is there a way I can lint my pod without building for arm64?
As I'm not responsible for the other pods I can't add arm64 support to them.
Any help much appreciated.
发布评论
评论(1)
s.pod_target_xcconfig = {'valive_archs'=> 'X86_64 ARMV7 ARM64'}
s.pod_target_xcconfig = { 'VALID_ARCHS' => 'x86_64 armv7 arm64' }