ハイブリッドアプリをApple TestFlightへアップロードする方法

フロー:

coderwall.com

 

手順

Getting Started Deploy Mobile Hybrid App To Apple TestFlight

Create test app on iTunes connect

  1. Goto iTunesConnect and create app

New App を選択

Add Certificate to your OS X Reference Link

Note * Skip this step if you're already connect your account with xCode

  1. Goto Apple Member Center

  2. Goto Identifiers session choose App IDs and create new

  3. Goto Device session click Development and create new

iPhoneなどをパソコンに接続して、XCode のWindow>DevicesからそのデバイスのIDを調べて登録する。100件まで登録可能。

iOS端末のUDIDの確認方法 - jubilee

  1. Goto Provisioning Profiles session and add your device

まずはDevelopmentから作る。あとでDistributionも作る。

 

About Creating a Certificate Signing Request (CSR) 

To manually generate a Certificate, you need a Certificate Signing Request (CSR) file from your Mac. To create a CSR file, follow the instructions below to create one using Keychain Access.

In the Applications folder on your Mac, open the Utilities folder and launch Keychain Access.

Within the Keychain Access drop down menu, select Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.

  • In the Certificate Information window, enter the following information:
    • In the User Email Address field, enter your email address.
    • In the Common Name field, create a name for your private key (e.g., John Doe Dev Key).
    • The CA Email Address field should be left empty.
    • In the "Request is" group, select the "Saved to disk" option.
  • Click Continue within Keychain Access to complete the CSR generating process.

 これを見て作る。

iOS実機開発手順#4-1 Provisioning Profiles ( Macintosh ) - エビ - Yahoo!ブログ

 

その後:

When your CSR file is created, a public and private key pair is automatically generated. Your private key is stored on your computer. On a Mac, it is stored in the login Keychain by default and can be viewed in the Keychain Access app under the "Keys" category. Your requested certificate is the public half of your key pair.

Upload CSR file.

Select .certSigningRequest file saved on your Mac.

 

参考サイト

Getting Started Deploy Mobile Hybrid App To Apple TestFlight · rotati/wiki Wiki · GitHub

iOS実機開発手順#4-1 Provisioning Profiles ( Macintosh ) - エビ - Yahoo!ブログ

Connect xCode to iTunes connect

Open ionic project with Xcode:

参考

Deploy an Ionic App to the iOS App Store — waaws-thinks — Medium

iOS Platform Guide - Apache Cordova

ionic platform add ios

    $ cordova platform add ios
    $ cordova prepare              # or "cordova build"

 

config/xml を編集

https://coderwall.com/p/vvkyra/getting-started-with-ionic

Build process

The Build system is the process of compiling these apps into an .ipa file for IOS and .apk file for Android. We can use PhoneGap build for this, or Cordova build. PhoneGap is $9.99 per month for private repositories, Cordova is free and as simple as the commands below. The cordova and ionic build commands are one and the same in terms of functionality so just pick one of them.

cordova build --release android
cordova build --release ios

ionic build ios
ionic build ios

Getting started with Ionic (Example)

 

 

Build new iOS xcode project every time again? - ionic - Ionic

IMPORTANT: Whenever you make a change in your project or to the config.xml file, you must remember to run the command:

ionic prepare ios

in order to update your ios project folder with the latest changes.

 

 

Open file with name ending with "xcodeproj" in folder platform/ios

  1. Add apple developer account > Preferences > Accounts tab and add

  1. Goto Xcode tool bar > Product > Analyze.This runs a full check errors on all files

AppIcon has an unassigned child というエラーが出ていた。

参考:

[Xcode] icon画像の設定で警告が結構出た: スタジオプリズム㐧3ブログ

しかし今回は、unassigned というオブジェクトは見当たらなかったため、無視して次へ。

  1. Goto Product > Archive click Submit to App Store, choose your account and submit (make sure your Bundle Identifier same as app that you created)

 

Archiveが灰色になっていて、クリックできない場合:

provisioning - Xcode Product -> Archive disabled - Stack Overflow

 

  1. Check your iTunes Connect and invite user

 

 

github.com

 

 

 

mzgk.github.io