Xcode 将 iOS 应用程序归档为 Mac 应用程序 [英] Xcode archiving iOS app as a Mac App

查看:52
本文介绍了Xcode 将 iOS 应用程序归档为 Mac 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 iOS 应用,我在去年构建了几次,并且部署了无数的临时构建,没有出现任何问题.但是,今天 Xcode 决定在归档我的应用程序时,应将其视为 Mac App Store 应用程序,而不是构建我可以共享的 .ipa 文件.

I've got an iOS app I've built several times over the last year, and have deployed countless ad hoc builds of with no issues. However, today Xcode has decided that when archiving my app, it should treat it as a Mac App Store app, and not build an .ipa file that I can share.

Git 没有显示对我的 .xcodeproj 文件的任何更改,我也看不到任何已更改的构建设置.我在项目中还有其他目标仍然可以正常构建,但是我用于分发的主要目标是导致这些错误的目标.有什么理由让 Xcode 认为它正在构建一个 Mac 应用程序而不是它以前的 iOS 版本?

Git doesn't show any changes to my .xcodeproj files and I can't see any build settings that have been changed. I've got other targets in the project that still build fine, but the primary target I use for distribution is the one causing these errors. Is there any reason why Xcode should think that it's building a Mac app instead of the iOS version it used to?

推荐答案

检查您是否不小心将 Info.plist 设为目标的一部分.不应该.在 Target Membership 窗格中取消选中它或从 Copy Bundle Resources 构建阶段将其删除.

Check if you have accidentally made your Info.plist part of your target. It shouldn't be. Uncheck it in the Target Membership pane or remove it from the Copy Bundle Resources build phase.

(通过这个问题找到答案:我的 iPhone 应用被归档为Mac App Archive"而不是iOS app archive";.)

(Found answer via this question: My iPhone app is being archived as "Mac App Archive" and not "iOS app archive".)

这篇关于Xcode 将 iOS 应用程序归档为 Mac 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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