xcode 7.1 swift framework应用程序构建但未归档 [英] xcode 7.1 swift framework app builds but not archiving

查看:62
本文介绍了xcode 7.1 swift framework应用程序构建但未归档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Swift xcode 7.1中创建了一个示例框架. 然后为发布的概要文件构建框架. 然后,发布的框架会添加(嵌入)到iOS测试应用中.

I have created a sample Framework in Swift, xcode 7.1. The framework is then built for Profiling, released version. Released framework then added(embedded) to an iOS test app.

该应用程序可以正常运行,但是在尝试对其进行存档时.发生错误,说明 无法生成位码捆绑包,因为'.../Test/FW.framework/FW'是在没有完整位码的情况下构建的.所有用于位码的框架和dylib必须从Xcode Archive生成或为体系结构arm64安装构建" /strong>

The app builds fine, but when trying to archive it. An error occurs, stating "bitcode bundle could not be generated because '.../Test/FW.framework/FW' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build for architecture arm64"

Framework和app项目处于默认设置,两者均启用了位码.

The Framework and app projects are on default settings, Bitcode enabled for both.

要确保Framework具有位码,请在Framework上使用此命令

To make sure Framework have bitcode, this command on Framework

"otool -l FW.framework/FW | grep __LLVM"

收益

段名称__LLVM

段名称__LLVM

段名称__LLVM

段名称__LLVM

我想念什么? 我已经在此处中包含了这两个项目,您可以下载它们并尝试存档.

What am I missing? I have included both projects here, you can download them and try archiving.

推荐答案

xcode要求在归档过程中生成所有嵌入式框架的位代码.

xcode requires that bitcode for all embedded frameworks is generated during archiving.

仅复制framework/dylib的发行版

Copying the release build of framework/dylib isn't enough


存档该框架,然后从此开始使用该框架的存档版本.

do
archive the framework and THEN use the archived version of the framework from then on.

要使xcode存档框架(通常仅存档应用程序),请将框架目标的构建设置跳过安装"设置为NO!

to get xcode to archive a framework (normally it only archives apps), set the build setting 'skip install' to NO for the framework target!

这篇关于xcode 7.1 swift framework应用程序构建但未归档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆