--> -->

skimemo


skimemo - 日記/2019-06-21/iOS版でのipaファイルの作成と実機インストール のバックアップ差分(No.1)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
#blog2navi()
*iOS版でのipaファイルの作成と実機インストール [#l5d548ed]

~iOS版をチーム内で確認して貰うには、インストールファイル(androidでいうapkファイル)の生成と、それをインストールする方法が必要です。~
マカーには常識かも知れませんが私は何も知らず、色々調べてしまったのでそのメモです。
~NativeScriptでipaファイルを生成するには、tnsコマンドでそれ用のオプション指定が必要です。
検索するとすぐ出てきますが、&inlinecode{--forDevice};オプションを付けてビルドします。(XCode上での必要な設定は済んでいる前提です)
 $ tns build ios --bundle --release --forDevice --env.uglify
 Skipping prepare.
 Building project...
 Xcode requires a team id to be specified when building for device.
 You can specify the team id by setting the DEVELOPMENT_TEAM setting in build.xcconfig file located in App_Resources folder of your app, or by using the --teamId option when calling run, debug or livesync commands.
 Found and using the following development team installed on your system: *********
 Xcode build...
     :
 Exported appli to: /Users/[username]/Documents/svn/[projname]/trunk/src/appli/platforms/ios/build/Release-iphoneos
 Project successfully built.
 The build result is located at: /Users/[username]/Documents/svn/[projname]/trunk/src/appli/platforms/ios/build/Release-iphoneos/appli.ipa
参考: [[how to build .ipa file in nativescript:https://stackoverflow.com/questions/47814755/how-to-build-ipa-file-in-nativescript]]
~すると、コンソール上にipaファイルのフルパスが表示されますので、finderでこのipaファイルをチームで共有できる場所に置きます。

~インストールする側は、端末にそのままダウンロードしてインストールすることはできません。iTunesを使って、PCとiPhoneをケーブル接続してインストールします。以下のページが非常に詳しく説明しています。
参考: Windowsを使ってiPhoneにipaをインストールする方法~
http://nn-hokuson.hatenablog.com/entry/2018/06/09/164924

#htmlinsert(twitterbutton.html)
RIGHT:Category: [[[NativeScript>日記/Category/NativeScript]]] - 10:26:54
----
RIGHT:&blog2trackback();
#comment(above)
#blog2navi()