使用fir.im分发IOS App的步骤

There are four methods to release your iOS app:

  1. Enterprise:

    • Situation: internal testing within a company
    • Required: an enterprise developer account
    • Advantage: when publishing within an enterprise, the device UDID is not restricted
    • PS: if the app is installed by a person outside the company, your account will be banned.
  2. iOS AppStore:

    • Situation:uploading to the App Store (several-week official review by Apple is required)
    • Required:packaged with a release certificate
    • PS: cannot debug
  3. Development:

    • Situation:internal testing. Or for debugging on a real device. In general, you install the app on your device with a data cable.
    • available device is pre-set (up to 100), you should add their UDIDs
    • Required:packaged with a development certificate
  4. Ad Hoc:

    • Situation:internal testing and debugging on a real device. And you can distribute the app on TestFlight / 蒲公英 / fir
    • available device is pre-set (up to 100), you should add their UDIDs
    • Required:packaged with a distribution certificate

Now we are going to introduce the method (the 4th) to distribute your app on fir.im.

What is required:

  • a MacOS computer
  • a Windows computer
  • an APPLE developer account
  • a fir account (real-name authentication required)

1. Generate your certificates

You should process the following steps of this chapter on your Windows computer (or virtual machine). It is also practicable to generate them on Apple Developer,But it will be quite troublesome

Steps:

  1. Download AppUploader
    The software called AppUploader is required. I have shared it on BaiduYun. Please download it.

  2. Login AppUploader
    Enter the software, then you should log in with your APPLE develop account (may require SMS verification)
    使用fir.im分发IOS App的步骤

  3. Add Certificate
    Choose 证书 and create a certificate for distribution, we called it P12 certificate. And then click the **ADD **Bottom in the right corner
    使用fir.im分发IOS App的步骤

  4. Create Your Certificate

    • 类型:Choose 发布证书
    • 名称:name it casually
    • Email:enter your work email
    • 证书密码:enter a simple password and remember it, you should enter it later
      使用fir.im分发IOS App的步骤
  5. Download Certificate
    Click OK and you can see the new certificate you created in the list.
    Then click the p12文件 to download it
    使用fir.im分发IOS App的步骤

  6. Add ID
    使用fir.im分发IOS App的步骤

    Click BACK and then click 描述文件
    Click ADD then click "添加应用ID"

    • 应用ID:
    • 名称:name it casually, but do not use ID name which has been used. If the following warning pops up, please change a name.
    使用fir.im分发IOS App的步骤
  7. Create An AdHoc Profile

    • Type:choose Ad Hoc
    • 应用ID:choose the ID you created just now
    • 证书:选中全部
    • Devices:选中全部设备
      使用fir.im分发IOS App的步骤
  8. Download Profile
    Click OK,and you can see the profile you created just now in the list.
    Click 下载 to download it
    使用fir.im分发IOS App的步骤

2. install your certificate

The rest of these steps should be done on your MacOS computer

And now you have got two files

  • One is your distribute certificate, whose suffix is p12
  • The other one is your profile, whose suffix is mobileprovision

Steps:

  1. Install Certificate
    Click the p12 to install, it will be add in your keychain
    使用fir.im分发IOS App的步骤
    Check in your keychain, you may find a new iPhone Distribution Certificate in your keychain
    PS: 信任 item of this certificate is 使用系统默认, please donot change it

  2. Add Profile
    Click the mobileprovision file to add it to your XCode

3. Generate the ipa

Before this, you should make sure that your app developed on XCode can generate in debug/release method because this document does not include the content to fix your program bug

Steps:

  1. Add a new Ad Hoc configuration for generating ipa

    • Open your Xcode and your project
    • Choose: PROJECT → Info → Configuration → ”+“Button
    • Choose: duplicate ”release“ configuration
    • replace the new configuration‘s name with AdHoc
      使用fir.im分发IOS App的步骤
  2. Change your Signing

    • Choose: TARGETS → Signing&Capabilities → AdHoc → Signing
    • Bundle Identifier: enter the ID you created before
    • Provisioning Profile: choose the mobileprovision (Ad Hoc) file you added
    • There should not be a warning **Status: Invalid trust settings **below. If so, please recheck your steps.
      使用fir.im分发IOS App的步骤
  3. Change the project signing

    • Choose: PROJECT → Build Settings → Signing (Basic+Combined)
    • In AdHoc item, press the ”+“button, a Any SDK item will be added
    • in these two item behind, please all choose the iPhone Distribution certificate you added to your keychain (the p12 file)
      使用fir.im分发IOS App的步骤
  4. Change the target signing

    • Choose: TARGET → Build Settings → Signing (Basic+Combined)
    • In AdHoc and SDK these two items behind, please all choose the iPhone Distribution certificate as same as shown in step4
      使用fir.im分发IOS App的步骤
  5. Edit Scheme

    • Choose: Product → Scheme → Edit Scheme

    • In the new window, choose: Archive → Build Configuration

    • Choose the AdHoc item
      使用fir.im分发IOS App的步骤

      使用fir.im分发IOS App的步骤
  6. Start to achive

    • In build option, choose Any IOS Device(arm64)
      使用fir.im分发IOS App的步骤

    • Choose: Product → Achive
      使用fir.im分发IOS App的步骤

    • Please enter the password of your keychain(your MacOS computer password)
      使用fir.im分发IOS App的步骤

  7. Generate the ipa

    • In the Organizer window, you can see the app is under generating
      使用fir.im分发IOS App的步骤

    • Click the Distribute App button, then choose Ad Hoc

    • Then press Next, in the next window, do not change the item and press Next

    • Then you see the default Distribution certificate is usable, you should choose the right mobileprovision file. There should not be a warning below (Profile doesn‘t include the selected signing certificate). If so, please recheck your steps.
      使用fir.im分发IOS App的步骤

    • Then press the Next button, in the new window that popped up you can export the ipa file. After Click the Export button, you should choose a path on your computer, then you press the Export button, you can find a file folder in this path, and the ipa file is in this folder.
      使用fir.im分发IOS App的步骤

4. Distribute your ipa through fir

You can distribute your ipa through the website of fir.im

Steps:

  1. Login
    Sign up an account of fir.im website. In addition, real-name authentication is required

  2. Upload
    Login with your account and then just drag your ipa file into the page to upload it.
    使用fir.im分发IOS App的步骤

  3. Generate the Link
    The 短链接 can be used for distribution and downloading.

使用fir.im分发IOS App的步骤

上一篇:苹果Mac开启root用户及切换到root用户的方法


下一篇:Com组件介绍