为什么pod lib lint忽略pod_target_xcconfig?

发布于 2025-01-30 14:36:35 字数 687 浏览 4 评论 0 原文

我负责一个依赖另一个豆荚的可可胶,这又取决于另一个豆荚。我对其他任何一个豆荚都不负责。当我在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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱,才寂寞 2025-02-06 14:36:35

s.pod_target_xcconfig = {'valive_archs'=> 'X86_64 ARMV7 ARM64'}

s.pod_target_xcconfig = { 'VALID_ARCHS' => 'x86_64 armv7 arm64' }

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文