如何构建 .ipa 并将其安装在 iphone 表单 xcode 上?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45460127/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to build .ipa and install it on iphone form xcode?
提问by parag Kartpay
I have installed MacOS 10.12 Using VMware and successfully implemented Ionic 2 app for IOS. I have also generated an .ipa file using the following method:
我已经使用 VMware 安装了 MacOS 10.12 并成功为 IOS 实施了 Ionic 2 应用程序。我还使用以下方法生成了一个 .ipa 文件:
- Clean your project.
- Build your project.
- Go to products menu -> select build for -> select Profiling.
- In project navigator, find your .app product.
- Right click on it and click show in finder.
- There you will find folder named "Release-iphoneos", in this folder you will find your .app extension file.
- Create a folder named "Payload", copy that .app file in this folder.
- Archive your folder.
- After archive, rename your folder to name of your app and change its extension from ".zip" to ".ipa"
- Your ipa is ready for sharing.
- 清理你的项目。
- 构建您的项目。
- 转到产品菜单 -> 选择构建 -> 选择分析。
- 在项目导航器中,找到您的 .app 产品。
- 右键单击它,然后单击在查找器中显示。
- 在那里你会找到名为“Release-iphoneos”的文件夹,在这个文件夹中你会找到你的 .app 扩展文件。
- 创建一个名为“Payload”的文件夹,将该 .app 文件复制到该文件夹中。
- 归档您的文件夹。
- 存档后,将您的文件夹重命名为您的应用程序的名称,并将其扩展名从“.zip”更改为“.ipa”
- 您的 ipa 已准备好共享。
From the above technique I got my .ipa file. Then, to install this app on iPhone i am using www.diawi.com . Now the problem is, when i am installing app from my safari browser on iphone download issue is showing. My internet connection is all good. I can also see the installation process on my iphone but app is not installing.
通过上述技术,我得到了我的 .ipa 文件。然后,要在 iPhone 上安装此应用程序,我使用的是 www.diawi.com。现在的问题是,当我在 iphone 上从我的 safari 浏览器安装应用程序时,出现了下载问题。我的互联网连接一切正常。我也可以在我的 iphone 上看到安装过程,但没有安装应用程序。
Note: I don't have Apple developer program. I need to build and install this app for testing in different iPhones.
注意:我没有 Apple 开发者计划。我需要构建并安装此应用程序以在不同的 iPhone 中进行测试。
Please suggest any other way to install my app on iPhone or another technique to build and share the app. My configuration is as follows:
请建议在 iPhone 上安装我的应用程序的任何其他方式或构建和共享应用程序的其他技术。我的配置如下:
Mac OS - 10.12 Sierra(VM-ware machine), Xcode- 8.3.3.
Mac OS - 10.12 Sierra(VM-ware 机器),Xcode- 8.3.3。
I tried so many articles but not sure where am i getting wrong. please suggest.
我尝试了很多文章,但不确定我哪里出错了。请建议。
回答by Mohammad Bashir Sidani
For that you will need to be enrolled with the Apple developer program (99$ a year). There is no other way.
为此,您需要注册 Apple 开发者计划(每年 99 美元)。没有其他办法。
Or you need to install it manually by plugging the iPhone in the computer and running the code in XCode (keep in mind that the default certificate will let your app run for 7 days then it will get expired)
或者您需要通过将 iPhone 插入计算机并在 XCode 中运行代码来手动安装它(请记住,默认证书将使您的应用程序运行 7 天,然后它会过期)
回答by R.Chauhan
to make .ipa file Archive your project and export your binary as developent or deployment. You can install your .ipa file manually.Connect your iPhone with your computer and drag .ipa file in your iPhone application folder.
制作 .ipa 文件 归档您的项目并将您的二进制文件导出为开发或部署。您可以手动安装 .ipa 文件。将 iPhone 与计算机连接,然后将 .ipa 文件拖到 iPhone 应用程序文件夹中。