位码WatchOS3-如何生成 [英] Bitcode WatchOS3 - how to generate
问题描述
我正在尝试将watchOS3应用上传到Apple商店,但是我收到了来自苹果的拒绝,类似于以下内容
I am attempting to upload a watchOS3 app to the apple store, however I received a rejection (from apple) thats similar the below
无效的可执行文件-可执行文件 someWatch Extension不包含位码。
更正了这些问题之后,您可以重新交付更正的二进制文件。
我该如何解决?似乎位码是强制性的,因为Xcode中不再有供我的手表应用程序使用的构建设置来简单地启用位码=否。
How can I resolve this? It seems like bitcode is mandatory as there is no longer a build setting in Xcode for my watch application to simply "Enable Bitcode=No".
我还尝试从Watch Extensions目录中运行 swiftc -embed-bitcode * .swift
,但是我收到以下
I have also tried looking into running swiftc -embed-bitcode *.swift
from my Watch Extensions directory, but I receive the below
MyController.swift:9:8:错误:没有这样的模块'WatchKit'
import WatchKit
我真的不知道从这里开始该做什么,而由于缺少watchOS3可以解决此问题的文档,UBER感到沮丧。请帮助
I really have no clue what to do from here and it UBER frustrating with the lack of documentation out there for watchOS3 to get around this. PLEASE HELP
推荐答案
对我来说,问题是 ENABLE_BITCODE = NO
在项目级别进行设置,即使Watch没有设置它,并且应该将其解析为YES(这是WatchOS的默认设置),但由于从项目继承的值,它仍被解析为NO。
For me the problem was that ENABLE_BITCODE=NO
was set on the project level, and even though Watch did not have it set and should have resolved to YES which is the default for WatchOS, it was still resolved to NO - because of the inherited value from the project.
要解决此问题,我在项目级别删除了 ENABLE_BITCODE
值。
(要执行此操作,请在项目构建设置中选择它,然后按键盘上的Delete按钮,以使文本失去其粗体。)
To resolve it, I removed the ENABLE_BITCODE
value at the project level.
(to do this, select it in the Project Build Settings and press delete button on your keyboard so that text loses its boldness).
这篇关于位码WatchOS3-如何生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!