要把Swift项目程序用于安装到iPhone中,听说是,打包为ipa,然后安装到iPhone上去
搜:
ios package for iphone install
xcode swift app to iphone
xcode install ipa on iphone
参考:
How to create a application package in iphone? – Stack Overflow
Tips & Techniques: How to install an .ipa file on an iPad or iPhone
Xcode 7 lets anyone install pirated apps, emulators on iPhone
Installing an Ad Hoc Distribution – iPhone How To Docs – Inner Fence
.ipa:developer app -> allow you to test the app on your iPad or iPhone before you send the .zip file to Apple for review.
.zip: distribution app
install .ipa to iPhone:
One way is to add the .ipa file to your iTunes library on your computer, and then sync your iPad/iPhone with iTunes.
Ad Hoc Distribution:
allows you to try an application before it’s available in the iTunes App Store. This is how we distribute iPhone applications to beta customers.
需要:
- The .ipa file for the application (usually AppName.app.AdHoc.ipa)
- The .mobileprovision file for the application (usually Ad_Hoc_Distribution_Profile.mobileprovision)
- Your Device: the iPhone or iPod Touch and know its UDID
- The computer you normally sync with your Device
如何安装:
拖动.ipa and .mobileprovision到iTunes中的Library(程序)目录中
然后在 应用 中看到自己的程序
然后同步的时候,同步的内容中包含自己的程序 即可:
把iPhone插入到装了iTunes的电脑上,iTunes会自动识别出手机,会显示出手机的图标,然后点击应用,然后点击同步
还是官网解释的清楚:
Exporting Your App for Testing (iOS, tvOS, watchOS)
Maintaining Identifiers, Devices, and Profiles
Registering Individual Devices - Maintaining Identifiers, Devices, and Profiles
步骤:
- Register all test devices.
- Archive your app.
- Export the archive using either an ad hoc provisioning profile or team provisioning profile to code sign your app.
- Install the app on test devices.
- Solicit crash reports from testers.
ad hoc provisioning profile
ad hoc:临时的
Member Center:register and add to a provisioning profile
For iOS apps, you can register 100 iPad, 100 iPhone, and 100 iPod Touch devices.
Certificates, Identifiers & Profiles – Apple Developer
然后就是填写表格:
然后继续申请即可。
其中上面列出的设备,是之前通过Xcode下载安装调试过程序的iPhone设备。
所以此处自动已经更新,把两个设备加到此处了-》已经自动注册了。
有空可以去试试:
Apple Configuration
还要操心appicon之类的:
Adding an iOS App Icon Set or Launch Image Set
拖动app icon到对应框框内:
[记录]Xcode添加Swift写的iOS的app的启动界面
抽空继续看:
About App Distribution Workflows
转载请注明:在路上 » [记录]Xcode打包Swift项目程序用于安装到iPhone中