ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Firebase Storage로 adhoc ipa 배포하기
    개발 이야기/IOS 2018. 11. 23. 16:37

    Firebase를 이용해서 ipa를 배포



    준비물

    .ipa //실제 설치파일

    .plist //설치 파일의 경로를 가르킨다.

    .html //.plist 파일을 가르킨다. 실페 배포 페이지



    //plist 파일

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

    <plist version="1.0">

    <dict>

            <key>items</key>

            <array>

                    <dict>

                            <key>assets</key>

                            <array>

                                    <dict>

                                            <key>kind</key>

                                            <string>software-package</string>

                                            <key>url</key>

                                            <string>여기에 설치파일 경로 입력</string> <!-- ipa url -->

                                    </dict>

                            </array>

                            <key>metadata</key>

                            <dict>

                                    <key>bundle-identifier</key>

                                    <string>여기에 번들명</string>

                                    <key>bundle-version</key>

                                    <string>버전</string>

                                    <key>kind</key>

                                    <string>software</string>

                                    <key>title</key>

                                    <string>타이틀명</string>

                            </dict>

                    </dict>

            </array>

    </dict>

    </plist>




    //배포 페이지

    <!doctype html>

    <html>

    <head>

      <meta charset="utf-8"/>

      <title></title>

      <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>

      <link rel="stylesheet" href=""/>

    </head>


    <body>

    <a href="itms-services://?action=download-manifest&url=여기에plist파일경로">다운로드</a>

    </body>


    </html>




    1. Firebase storage에 .ipa, .plist 파일을 업로드한다.


    2. 각 파일의 다운로드 URL을 단축 URL로 변경한다.


    https://goo.gl/ 을 이용해서 URL을 단축



    //ipa 파일

    https://firebasestorage.googleapis.com/v0/b/utility-6da0f.appspot.com/o/knfc.ipa?alt=media&token=2c7c1af1-7602-4279-a83e-0b253ffb2b37


    변환


    https://goo.gl/DHBf2z



    //plist파일

    https://firebasestorage.googleapis.com/v0/b/utility-6da0f.appspot.com/o/knfc.plist?alt=media&token=ed369a17-ab74-461f-a0cc-e4456b5cc747


    변환


    https://goo.gl/sXJuc4



    3. 호스팅 서버에 배포 html파일을 등록하고 링크를 누르면 설치 됨.



    ▶주의사항

    드랍박스는 ipa나 plist파일을 재업로드 해서 덮어쓰기 해도 다운로드 URL이 변경되지 않지만

    Firebase는 재 업로드 할 때마다 URL이 변경된다.

    따라서 파일을 업데이트 하면 계속해서 단축 URL을 재생성해서 변경해줘야한다.





    '개발 이야기 > IOS' 카테고리의 다른 글

    Dropbox로 adhoc ipa 배포하기  (0) 2018.11.23

    댓글

Designed by Tistory.