gpt4 book ai didi

ios - cocoa touch 框架

转载 作者:行者123 更新时间:2023-11-30 11:37:49 25 4
gpt4 key购买 nike

我正在构建一个Cocoa Touch 框架。我开始使用 Xcode 模板,然后开发所有逻辑。我知道该框架必须是通用的才能在模拟器和设备上运行,因此我使用 lipo 命令来创建它(我有一个运行脚本阶段)。现在的问题是,我们无法将应用程序发送到具有内部带有模拟器片段的框架的应用程序商店,因此我们必须使用仅设备版本。我怎样才能自动化这个过程?其他库向人们分发可在任何地方使用的 .framework 文件。我们怎样才能达到同样的结果呢?

最佳答案

您可以使用 Realm 团队的脚本 https://github.com/realm/realm-cocoa/blob/master/scripts/strip-frameworks.sh

If using Realm in an iOS, tvOS or watchOS project, create a new “Run Script Phase” in your app’s target’s “Build Phases” and paste the following snippet in the script text field:

bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh" This step is required to work around an App Store submission bug when archiving universal binaries.

关于ios - cocoa touch 框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49555798/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com