Xcode archiving iOS app as a Mac App

廉价感情. 提交于 2019-12-09 12:28:29

问题


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 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?


回答1:


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.

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




回答2:


You might be missing the version number. Select the project in the file browser, then choose your app target and look at the Summary tab. If there is no version number add one and see if that helps.



来源:https://stackoverflow.com/questions/9694038/xcode-archiving-ios-app-as-a-mac-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!