Skip to content

ZXSDK 不含模拟器 arm64 slice,导致 Apple Silicon Mac 模拟器无法构建 #70

Description

@Qian-Samuel

问题描述

个推 Flutter 插件 getuiflut 依赖 GTSDK,GTSDK 又依赖 ZXSDK。GTSDK v3.1.0.0 已通过 XCFramework 支持模拟器 arm64,但 ZXSDK v3.3.2 仍是纯 .framework,其 arm64 slice 为真机编译,不含模拟器 arm64 slice。导致 Apple Silicon Mac 上模拟器构建失败:

Building for 'iOS-simulator', but linking in object file 
ZXSDK.framework/ZXSDK[arm64][3](ZXSDKTcpSessionManager.o) built for 'iOS'

同时 ZXSDK podspec 中 EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 会导致 Apple Silicon 模拟器直接从 xcodebuild destinations 消失,Flutter 开发者完全无法在模拟器上调试。

环境

  • macOS 26.4.1 (Apple Silicon M3)
  • Xcode 26.5
  • Flutter 3.38.7
  • getuiflut 0.2.41
  • GTSDK 3.1.0.0 / GTCommonSDK 3.2.3.0 / ZXSDK 3.3.2

期望

推动 GTSDK 团队将 ZXSDK 升级为 XCFramework,包含 ios-arm64_x86_64-simulator slice。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions