ユーザ用ツール

サイト用ツール


reactnative:expo:build

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
reactnative:expo:build [2019/02/13 02:05]
ips
reactnative:expo:build [2019/02/15 03:26] (現在)
ips
ライン 1: ライン 1:
 ====== build(akpの作成)のためのコマンド ====== ====== build(akpの作成)のためのコマンド ======
 +
 +===== app.jsonを修正する =====
 +<​code>​
 +{
 +  "​expo":​ {
 +    "​name":​ "​expo-login",​
 +    "​slug":​ "​expo-login",​
 +    "​privacy":​ "​public",​
 +    "​sdkVersion":​ "​31.0.0",​
 +    "​platforms":​ [
 +      "​ios",​
 +      "​android"​
 +    ],
 +    "​version":​ "​1.0.0",​
 +    "​orientation":​ "​portrait",​
 +    "​icon":​ "​./​assets/​icon.png",​
 +    "​splash":​ {
 +      "​image":​ "​./​assets/​splash.png",​
 +      "​resizeMode":​ "​contain",​
 +      "​backgroundColor":​ "#​ffffff"​
 +    },
 +    "​updates":​ {
 +      "​fallbackToCacheTimeout":​ 0
 +    },
 +    "​assetBundlePatterns":​ [
 +      "​**/​*"​
 +    ],
 +    "​ios":​ {
 +      "​supportsTablet":​ true
 +    }
 +  }
 +}
 +</​code>​
 +   ↓
 +<​code>​
 +{
 +  "​expo":​ {
 +    "​name":​ "​expo-login",​
 +    "​slug":​ "​expo-login",​
 +    "​privacy":​ "​public",​  // public
 +    "​sdkVersion":​ "​31.0.0",​
 +    "​platforms":​ [
 +      "​ios",​
 +      "​android"​
 +    ],
 +    "​version":​ "​1.0.0",​
 +    "​orientation":​ "​portrait",​
 +    "​icon":​ "​./​assets/​icon.png",​
 +    "​splash":​ {
 +      "​image":​ "​./​assets/​splash.png",​
 +      "​resizeMode":​ "​contain",​
 +      "​backgroundColor":​ "#​ffffff"​
 +    },
 +    "​updates":​ {
 +      "​fallbackToCacheTimeout":​ 0
 +    },
 +    "​assetBundlePatterns":​ [
 +      "​**/​*"​
 +    ],
 +    "​ios":​ {
 +      "​supportsTablet":​ true
 +    },
 +    "​android":​ { // 追加
 +      "​package":​ "​com.nekotype.expo-meomry2"​ //​ 追加
 +    } // 追加
 +  }
 +}
 +</​code> ​
 +
 +===== expo login(とちゅうでしてもいい) =====
 +
 +<​code>​
 +expo login
 +There is a new version of expo-cli available (2.10.1).
 +You are currently using expo-cli 2.7.1
 +Run `npm install -g expo-cli` to get the latest version
 +? You are already logged in as tama. Log in as new user? (Y/n)
 +</​code> ​
 +
  
 ===== 「expo-cli build:​android」を実行する ===== ===== 「expo-cli build:​android」を実行する =====
ライン 15: ライン 94:
   Cancel   Cancel
 </​code>​ </​code>​
 +
 +<​code>​
 +[06:47:12] You can monitor the build at
 +
 + ​https://​expo.io/​builds/​313917c5-ec9a-46a0-b0ab-66feaaxxxxx ​ //​←WebのEXPOで経過がみれる
 +
 +
 +|[06:47:12] Waiting for build to complete. You can press Ctrl+C to exit.
 +[06:57:19] Successfully built standalone app: https://​expo.io/​artifacts/​78e1c7a3-bf99-4cbc-96c4-9dxxx //​apkがダウンロードできる
 +</​code>​
 +
 +{{:​reactnative:​expo:​pasted:​20190213-070528.png}}
 +
 +その後、WebのEXPOから過去のbuildなどのダウンロードができる。
 +
 +[[https://​expo.io/​login|Expoログイン]]
 +
 +===== エラー =====
 +
 +<​code>​
 +• Field: android.package - '​android.package'​ should be a reverse DNS notation unique name for your app. For example, host.exp.exponent,​ where exp.host is our domain and Expo is our app. The name may only contain lowercase and uppercase letters (a-z, A-Z), numbers (0-9) and underscores (_). Each component of the name should start with a lowercase letter..
 +[02:21:36] Couldn'​t publish because errors were found. (See logs above.) Please fix the errors and try again.
 +</​code>​
 +   ↓
 +<​code>​
 +"​com.nekotype.expo-meomry2"​
 +  を
 +"​com.nekotype.expo.meomry2"​
 +  に変更したら消えた
 +</​code>​
 +
 +===== アプリはインストールされていません =====
 +同じアプリ(app.jsonで名前は変えてい)がインストールされているからだった。
 +削除したらインストールできた。
 +{{:​reactnative:​expo:​pasted:​20190215-032643.png}}
 +
 +
reactnative/expo/build.1549991144.txt.gz · 最終更新: 2019/02/13 02:05 by ips