Xcode 10打破了Ionic Cordova的构建 [英] Xcode 10 breaks Ionic Cordova build

查看:175
本文介绍了Xcode 10打破了Ionic Cordova的构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Enterprise Distribution的Ionic 3 App用于客户端,当然Apple喜欢更改其新iOS上的设置.在iOS 11上一切正常,当客户端用户升级到iOS 12时,他们的应用程序完全崩溃,无法重新下载.

I have an Ionic 3 App using Enterprise Distribution for a client and of course Apple likes to change settings on their new iOS. Everything was working fine on iOS 11 and when a client-user upgraded to iOS 12 their app completely broke and could not re-download.

我尝试过的步骤:

  • 检查iOS Provisioning配置文件状态
  • 在Xcode 10.0中重建应用
  • 为应用程序归档并创建新的清单和.ipa文件
  • 使用 ionic cordova build ios --prod
  • 在npm中重建应用
  • 使用 npm过时
  • 更新我们需要更新的所有插件
  • 使用ionic Deploy提交并推送到生产分支
  • Check iOS Provisioning Profile Status
  • Rebuild App in Xcode 10.0
  • Archive and create new manifest and .ipa file for app
  • Rebuild app in npm using ionic cordova build ios --prod
  • Update any plugins that we're needing updates using npm outdated
  • Commit and Push to Production branch using ionic Deploy

我尝试过的所有事情都使我能够成功构建该应用程序,并且能够通过Xcode在本地设备上构建该应用程序,但是一旦将.ipa文件放在我们的服务器上,该应用程序将无法成功下载.

Everything I've tried allowed me to build the app successfully and I was able to build the app locally on my device via Xcode, but as soon as I put the .ipa file on our server the app will not successfully download.

我觉得这可能是Xcode中的一个特殊设置,但是我现在陷入困境.任何帮助将不胜感激.

I have a feeling it may be a particular setting in Xcode, but I'm stuck right now. Any help would be appreciated.

更新Xcode 10后,运行ionic cordova build ios

After the update of Xcode 10, the app would no longer build successfully after running ionic cordova build ios

推荐答案

所以该问题从未出现过,但是我以某种方式解决了该问题,方法是从git和Ionic部署中删除另一个分支,并在最新提交时保持Production分支处于活动状态.我还使用Enterprise Developer证书和Provisioning Profile在Ionic Deploy上创建了证书配置文件,并打包了我的应用程序.我使用了Deploy中的.ipa文件,并将其扔到服务器上,它的工作原理像一个魅力.

So the issue was never apparent, but I somehow fixed the issue by removing the other branch from git and Ionic deploy and kept the Production branch active on the latest commit. I also created the certificate profile on Ionic Deploy using the Enterprise Developer Certificate and Provisioning Profile and packaged my app. I used the .ipa file from Deploy and threw it on the server and it worked like a charm.

我终于找到了有关应用程序中断原因的文档.当发布Xcode 10时,如果用户已下载Xcode 10在终端中构建,则Apache Cordova不会并且仍然不支持iOS.此处提供的链接: Xcode 10支持.

I finally found documentation on why the app breaks. When Xcode 10 was released, Apache Cordova did not and still does not have support for iOS if the user has Xcode 10 downloaded to build in the terminal. Link provided here: Xcode 10 Support.

使用ionic cordova build iosionic cordova run ios构建应用程序时 您必须像这样运行它:ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0".在提供的链接中有更多信息.

When building the app using ionic cordova build ios or ionic cordova run ios You must run it like this: ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0". More information in the link provided.

可以找到更多可能的答案

More possible answers can be found here. In some cases, users are experiencing similar yet different issues.

这篇关于Xcode 10打破了Ionic Cordova的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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