Flutter iOS构建用于测试 [英] Flutter ios build for testing
问题描述
我想知道如何在不将其注册到应用商店的情况下构建发布应用.我想拥有APK文件,并与朋友共享该文件以进行测试,而无需注册该应用程序.无法找到与此相关的信息.谢谢!
I would Like to know how I can build a release app without registering it to the app store. I would Like to have the APK file and share it with friends for testing purposes without registering the app. Cant find information connected with this. Thanks!
更新:找到了用于获取与真实设备上的Cydia Impactor一起安装的.ipa文件的解决方案:
UPDATE: Found solution for getting .ipa file which was installed with Cydia Impactor on a real device:
# flutter build
flutter build ios --release --no-codesign
# make folder, add .app then zip it and rename it to .ipa
mkdir -p Payload
mv ./build/ios/iphoneos/Runner.app Payload
zip -r -y Payload.zip Payload/Runner.app
mv Payload.zip Payload.ipa
# the following are options, remove Payload folder
rm -Rf Payload
推荐答案
您可以按照本文制作.ipa文件.(.apk仅适用于android,对于iOS为.ipa)
You can follow this article to make .ipa file. (.apk is for android only, for iOS it's .ipa)
Keep in mind that, apple is signing build to be installed on real devices, so you have to turn that off, and after making an ipa file, you can upload it to www.diawi.com and get link from there to share it with your friend. This diawi links are not working some times, in that case you can use cydiaimpector tool for installing the build.
对于此安装,您的朋友必须按要求输入其Apple ID和密码,请注意,如果您的两因素身份验证为开",则必须创建要输入的应用专用密码.
For this installation, your friend has to put their apple id and password upon requested, here NOTE that if your two factor authentication is ON, then you have to create app specific password to be entered in.
如何创建应用专用密码?
How to create app-specific password?
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=2ahUKEwiSvpjUo-fjAhXt8XMBHRtBDlUQFjACegQIDBAI&url=https%3A%2F%2Fwww.imore.com%2Fhow-generate-app-specific-passwords-iphone-ipad-mac&usg=AOvVaw3chF3FoIcfHZLR6jExh_EZ
这篇关于Flutter iOS构建用于测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!