简体   繁体   English

使用Ionic进行IOS部署

[英]IOS Deployment with Ionic

Is it possible to deploy an ionic app to your ios device without publishing it on the app store? 是否可以将离子应用程序部署到ios设备而无需在应用商店中发布? I do have a Mac and a developers license, the app I want to use is for private use (for about 5 users). 我有一个Mac和一个开发人员许可证,我想使用的应用程序是私人使用(约5个用户)。

Yes, indeed you can. 是的,的确可以。

You first have to build your project for ios: 首先必须为ios构建项目:

ionic build ios

Then you have to open up (with Xcode) the .xproj project that was generated by ionic build ios command (you'll see the exact location in the command's output). 然后你必须打开(使用Xcode)由ionic build ios命令生成的.xproj项目(你将看到命令输出中的确切位置)。

Now you have to connect your iPhone to you Mac computer and you'll be able to choose your iPhone as a "deployment" device. 现在,您必须将iPhone连接到Mac计算机,并且您将能够选择iPhone作为“部署”设备。

Click run in Xcode and after the Xcode finishes guiding you through creating a provisioning profile you'll have the app on your phone. 点击在Xcode中运行,在Xcode完成指导您创建配置文件后,您将在手机上安装该应用程序。

For more info take a look at https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html 欲了解更多信息,请访问https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html

Of course, you just need Xcode to generate the ipa so you can install it anywhere. 当然,你只需要Xcode来生成ipa,这样你就可以在任何地方安装它。

Check this guide: http://cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html As ionic is essentially cordova the steps are similar. 查看本指南: http//cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html由于离子基本上是cordova,因此步骤类似。

Steps to upload ipa to App Store and Device (ionic App) 将ipa上传到App Store和Device的步骤(离子应用程序)

Step 1 1. Import Project to Mac Laptop 2. Create a new Project in Mac via terminal and import all SRC Folder from old project to new Project. 步骤1 1.将项目导入Mac笔记本电脑2.通过终端在Mac中创建一个新项目,并将所有SRC文件夹从旧项目导入新项目。 3. Open the New Project. 3.打开新项目。 4. Copy the Dependency from old Projects from Dependencies and paste in New Project in Dependencies 5. Don't remove old Dependency of new Project just install new one 6. Fire command Npm install once dependency and Src Folder is copied to new Project 7. Go to config.xml change widget id, version, Description, author email, href. 4.从依赖项中的旧项目复制依赖项并粘贴到依赖项中的新项目中5.不要删除旧项目的旧依赖项只需安装新项目6.消防命令Npm安装一次依赖项和Src文件夹复制到新项目7。转到config.xml更改小部件ID,版本,描述,作者电子邮件,href。 8. Change Version in package-lock.json 9. Npm install 10. Don't Forget to Save All Files. 8.更改package-lock.json中的版本9. Npm install 10.不要忘记保存所有文件。

Step 2 1. Ionic serve -l If you have installed Native Plugins (Ie camera, network, base 64 etc.), Reinstall that All Native Plugins. 步骤2 1.离子服务-l如果您已安装Native Plugins(即摄像头,网络,base 64等),请重新安装All Native Plugins。 2. Verify that app is running in browser 3. Ionic cordova build ios 2.验证应用程序是否在浏览器3中运行.Ionic cordova build ios

Step 3 1. Go to developer.apple.com 2. Click on Identifier-> App Id. 步骤3 1.访问developer.apple.com 2.单击Identifier-> App Id。 3. Register App Id Name and Bundle Id 4. Click on Continue and Register 5. Go to Provisional Profile 6. Click + Sign 7. Click on Development 8. Select Ios App Development 9. Select IPhone Listed 10. Generate Profile Name by Giving Name 11. Continue and Profile will be Ready 12. Click on Done. 3.注册应用程序ID名称和软件包ID 4.单击继续并注册5.转到临时配置文件6.单击+登录7.单击开发8.选择Ios App Development 9.选择IPhone Listed 10.通过Giving生成配置文件名称名称11.继续,配置文件将准备就绪12.单击完成。

Step 4 1. Go to Project-> ios-> projectName.xcodeproj 2. Xcode will be opened when you open file projectName.xcodeproj 3. Click on Project and Automatic Signing 4. Select your Device and Click on Run Button 5. Change Bundle Name and Bundle Identifier Name in INFO 6. File -> Project Setting ->Shared Project Setting -> Build Setting ->Select Legacy Build System instead of Default (Verify Once) 7. Click on Run Button Your App will be Deployed in iPhone 步骤4 1.转到Project-> ios-> projectName.xcodeproj 2.打开文件projectName.xcodeproj时将打开Xcode 3.单击Project and Automatic Signing 4.选择您的设备并单击Run Button 5. Change Bundle INFO中的名称和包标识符名称6.文件 - >项目设置 - >共享项目设置 - >构建设置 - >选择旧版构建系统而不是默认(验证一次)7。单击运行按钮您的应用程序将部署在iPhone中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM