I've successfully built the iOS app with the ionic build ios
command. But now I want to use TestFlight and it asks me for an IPA file. It seems that file is not generated with that build command. So, how can I generate it?
我已经用ionic build iOS命令成功构建了iOS应用。但是现在我想使用TestFlight,它要求我使用IPA文件。看起来这个文件不是用这个build命令生成的。那么,如何生成它呢?
Thanks
谢谢
2 个解决方案
#1
27
You can easily build IPA from ionic framework. by following these steps
您可以轻松地从ionic框架构建IPA。通过以下步骤
- Navigate to app folder
- 导航到应用程序文件夹
- Run cordova build command
- 运行科尔多瓦构建命令
- Open the Xcode Project
- 打开Xcode项目
- Clean the project
- 清洁项目
- Select iOS mobile device to build for, don't use iOS emulator as device otherwise the archive is disabled.
- 选择要构建的iOS移动设备,不要使用iOS模拟器作为设备,否则会禁用存档。
- Archive the project
- 归档项目
- Distribute the project
- 分配项目
- Choose a method for distribution
- 选择一种分配方法
- Choose a Profile
- 选择一个概要文件
- Select a location to save the .ipa file
- 选择保存.ipa文件的位置
I have generate my .ipa file by using these steps hope it will works for your's.
我已经生成了我的。ipa文件,通过使用这些步骤,希望它将适用于你的。
#2
6
this article is kind of old but should help you.
这篇文章有点旧,但应该对你有所帮助。
In Command line change into the folder that contains your *.xcodeproj, and run the following:
在命令行中更改为包含*的文件夹。xcodeproj,运行如下:
xcodebuild -target "My Target" -scheme "My Scheme"
-configuration Release clean archive
Now you’ve got your xcarchive , Following line will generate ipa which you can upload to TestFlight.
现在您已经有了您的xcarchive,接下来的行将生成ipa,您可以将其上传到TestFlight。
cd platforms/ios/build/device/usr/bin/xcrun -sdk iphoneos PackageApplication "$(pwd)/$PROJECT_NAME.app" -o "$(pwd)/$PROJECT_NAME.ipa"
Hope this helps
希望这有助于
#1
27
You can easily build IPA from ionic framework. by following these steps
您可以轻松地从ionic框架构建IPA。通过以下步骤
- Navigate to app folder
- 导航到应用程序文件夹
- Run cordova build command
- 运行科尔多瓦构建命令
- Open the Xcode Project
- 打开Xcode项目
- Clean the project
- 清洁项目
- Select iOS mobile device to build for, don't use iOS emulator as device otherwise the archive is disabled.
- 选择要构建的iOS移动设备,不要使用iOS模拟器作为设备,否则会禁用存档。
- Archive the project
- 归档项目
- Distribute the project
- 分配项目
- Choose a method for distribution
- 选择一种分配方法
- Choose a Profile
- 选择一个概要文件
- Select a location to save the .ipa file
- 选择保存.ipa文件的位置
I have generate my .ipa file by using these steps hope it will works for your's.
我已经生成了我的。ipa文件,通过使用这些步骤,希望它将适用于你的。
#2
6
this article is kind of old but should help you.
这篇文章有点旧,但应该对你有所帮助。
In Command line change into the folder that contains your *.xcodeproj, and run the following:
在命令行中更改为包含*的文件夹。xcodeproj,运行如下:
xcodebuild -target "My Target" -scheme "My Scheme"
-configuration Release clean archive
Now you’ve got your xcarchive , Following line will generate ipa which you can upload to TestFlight.
现在您已经有了您的xcarchive,接下来的行将生成ipa,您可以将其上传到TestFlight。
cd platforms/ios/build/device/usr/bin/xcrun -sdk iphoneos PackageApplication "$(pwd)/$PROJECT_NAME.app" -o "$(pwd)/$PROJECT_NAME.ipa"
Hope this helps
希望这有助于