菜鸟教程小白 发表于 2022-12-12 21:21:56

ios - XCode 通用存档而不是 iOS 应用存档


                                            <p><p>我的应用程序突然停止创建 iOS App Archive,而是开始创建 Xcode Generic Archive。</p>

<p>这是在为我的应用程序的新版本进行更改之后发生的,我添加了逻辑、UI 更改和一些新框架。</p>

<p>我查看了我的项目、我的目标以及我正在使用的 Pod 库的所有 <strong>“跳过安装”</strong> 标志。一切都好。我还确保复制 header 构建阶段不包括公共(public) header 或私有(private) header ,仅包括项目 header 。我还检查了 <strong>“安装路径”</strong> 是否设置为我的项目和目标中的有效路径,并且它指向 <strong>Applications</strong>。</p>

<p>我没有针对我的主要目标或复制文件阶段的依赖项。</p>

<p>如果有人发现其他可能导致此错误的原因,我将非常感谢您的帮助。
仅供引用,我已经在 StackOverflow 中阅读了以下帖子:</p>

<ol>
<li> <a href="https://stackoverflow.com/questions/10715211/cannot-generate-ios-app-archive-in-xcode" rel="noreferrer noopener nofollow">Cannot generate iOS App archive in xcode</a> </li>
<li> <a href="https://stackoverflow.com/questions/10715211/cannot-generate-ios-app-archive-in-xcode" rel="noreferrer noopener nofollow">Cannot generate iOS App archive in xcode</a> </li>
<li> <a href="https://developer.apple.com/library/ios/technotes/tn2215/_index.html" rel="noreferrer noopener nofollow">https://developer.apple.com/library/ios/technotes/tn2215/_index.html</a> </li>
<li> <a href="http://pulkitsinghal.blogspot.com.ar/2012/03/wrong-archive-ios-app-archive-vs.html" rel="noreferrer noopener nofollow">http://pulkitsinghal.blogspot.com.ar/2012/03/wrong-archive-ios-app-archive-vs.html</a> </li>
</ol></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>在这上面花了 4 个多小时后,我发现了我的情况。
基本上,问题(Xcode 通用存档生成而不是应用存档)是由于添加了 SASS 来预处理我与 Pixate 一起使用的 .css 文件。</p>

<p>几分钟前我发现有添加 SASS 的新说明,您可以在此处找到这些说明 <a href="https://github.com/Pixate/pixate-freestyle-ios/tree/master/themes#compiling-sass" rel="noreferrer noopener nofollow">Adding SASS to iOS</a> </p>

<p>我已按照 Pixate 页面 <a href="http://www.pixate.com/blog/2013-01-19-sass/" rel="noreferrer noopener nofollow">to add SASS with Pixate</a> 中的说明进行操作但是这些说明导致在我的应用程序 .ipa 文件之外生成 default.css 文件。正如我在附图中所示。 <img src="/image/zTLLh.png" alt="Generic Archive - &gt; Save Built Products output"/> .</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - XCode 通用存档而不是 iOS 应用存档,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/22969382/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/22969382/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - XCode 通用存档而不是 iOS 应用存档